fix(sidebar): keep the collapsed profile chip inside the rail - #6282
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryCursor Bugbot is generating a summary for commit 0cc5332. Configure here. |
Contributor
Greptile SummaryThe PR constrains the collapsed sidebar profile chip to the available rail width while preserving the expanded chip behavior.
Confidence Score: 5/5The PR appears safe to merge, with no concrete functional or accessibility regression identified. The change is limited to the collapsed trigger’s minimum-width constraint; its border box and hover fill now fit the padded rail while the non-shrinking avatar retains its intended offset.
|
| Filename | Overview |
|---|---|
| apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/sidebar-footer/sidebar-footer.tsx | The collapsed profile trigger now permits flex shrinking to the footer’s 35px inner width without changing expanded behavior or avatar alignment. |
Reviews (1): Last reviewed commit: "fix(sidebar): keep the collapsed profile..." | Re-trigger Greptile
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
opacity, notdisplay, so the fade survives a toggle), and its empty box still contributed the content row's gap, putting the chip's automatic minimum at 38px against a 35px railmin-w-0so it fills exactly the rail, and the avatar keeps the same 8px offset as the help glyph above itType of Change
Testing
Typecheck + lint clean; not yet verified in a running browser
Checklist