fix: reclaim full space when sidebar collapsed on Messages and Map#2368
Merged
fix: reclaim full space when sidebar collapsed on Messages and Map#2368
Conversation
Collapsed sidebar now shrinks to width 0 instead of 48px, with the expand button floating as a small icon overlay in the top-left corner of the content area. Applies to both Map (nodes-anchored-sidebar) and Messages (messages-sidebar) tabs, including mobile responsive styles. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| width: 48px !important; | ||
| min-width: 48px; | ||
| max-width: 48px; | ||
| width: 0 !important; |
There was a problem hiding this comment.
✅ Excellent change! Reducing collapsed width from 48px to 0 properly reclaims the full space. The overflow: visible is crucial to ensure the floating expand button remains accessible.
| @@ -554,16 +563,20 @@ | |||
| } | |||
|
|
|||
| .nodes-sidebar.collapsed .sidebar-header { | |||
There was a problem hiding this comment.
✅ Smart positioning solution! Moving the collapsed header to absolute positioning with proper z-index (1000) creates a clean floating expand button. The box-shadow on line 579 adds nice visual depth.
| /* When collapsed on mobile, show as small strip */ | ||
| /* When collapsed on mobile, reclaim all space */ | ||
| .nodes-anchored-sidebar.collapsed { | ||
| position: static; |
There was a problem hiding this comment.
✅ Consistent mobile implementation! Good that you applied the same 0-width approach to mobile collapsed state. This ensures consistent behavior across all device sizes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When collapsing the sidebar on Messages or Map tabs, the sidebar now shrinks to 0 width instead of leaving a 48px dead space column. The expand button floats as a small icon overlay in the top-left corner of the content area.
Changes
Files Changed
src/styles/nodes.cssTest plan
🤖 Generated with Claude Code