Repository navigation
ux(sidebar): move the collapse toggle above the profile row + restyle - #168
Merged
Merged
Conversation
The collapse toggle was the bottom-most element, below the profile row, styled as a bordered full-width centered icon button that read as a third nav surface. Move it above the profile row (the natural footer), drop its top border so the footer has a single seam at the profile row, and restyle it as a left-aligned h-9 ghost row (centered only when collapsed) matching the nav rows. Swap PanelLeftClose/Open for ChevronsLeft/Right. Closes #163 Co-authored-by: Cursor <[email protected]>
This branch was successfully deployed
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
The sidebar collapse toggle was the bottom-most element (below the user-profile row) and styled as a bordered, full-width, centered icon button — reading as a third nav surface rather than a small utility. This moves it above the profile row and restyles it to blend into the nav stack.
Closes #163.
Changes
In
web/src/components/layout/sidebar.tsx:border-ton the toggle container (border-t p-2→p-2); the profile row keeps itsborder-t, giving the footer a single seam in the right place.ghostbutton,h-9 w-fullwithjustify-startexpanded /justify-centercollapsed, matching the nav rows' height + horizontal rhythm.PanelLeftClose/PanelLeftOpen→ChevronsLeft/ChevronsRight; import block updated.The store action (
toggleCollapse) is unchanged.Acceptance criteria
border-ttsc --noEmit+eslintcleanOut of scope
Hiding the toggle on mobile / reworking mobile nav; persisting collapse state anywhere new; reworking the user-profile row.
Made with Cursor