improvement: compact hover-expand UX for canvas toolbar toggles#672
improvement: compact hover-expand UX for canvas toolbar toggles#672breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom improvement/compact-hover-expand-toolbar-togglesbreaking-brake/cc-wf-studio:improvement/compact-hover-expand-toolbar-togglesCopy head branch name to clipboard
Conversation
- All 4 toolbar toggles show as 28x28 compact icons by default - Hover expands to full toggle with switch and both mode icons - Extract EdgeAnimationToggle and HighlightToggle as separate components - Change edge animation icon to ChevronsLeftRightEllipsis with off-state slash overlay - Add focus border highlight on hover for all toggles - Fix empty tooltip rendering in StyledTooltipItem Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughToolbar components refactored to extract toggle controls into separate, reusable components with a consistent hover-expanding UI pattern. New Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
## [3.30.2](v3.30.1...v3.30.2) (2026-03-22) ### Bug Fixes * rename MCP tool list_available_commands to list_available_agents ([#668](#668)) ([e99e624](e99e624)) ### Improvements * add Classic/Freehand scroll mode toggle to canvas ([#669](#669)) ([5a5e326](5a5e326)) * compact hover-expand UX for canvas toolbar toggles ([#672](#672)) ([73b40c9](73b40c9))
|
🎉 This PR is included in version 3.30.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Make all 4 canvas toolbar toggles compact by default (28x28 icon buttons), expanding to full toggle controls on hover with smooth CSS transitions.
What Changed
Before
After
var(--vscode-focusBorder)for clear interaction feedbackChanges
src/webview/src/components/ScrollModeToggle.tsx- Added hover-expand behavior with CSS transitionssrc/webview/src/components/InteractionModeToggle.tsx- Added hover-expand behavior with CSS transitionssrc/webview/src/components/EdgeAnimationToggle.tsx- New component extracted from CanvasToolbarsrc/webview/src/components/HighlightToggle.tsx- New component extracted from CanvasToolbarsrc/webview/src/components/CanvasToolbar.tsx- Simplified to use new toggle componentssrc/webview/src/components/common/StyledTooltip.tsx- Fix empty tooltip renderingTesting
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Refactor