style(frontend): nudge the sidebar brand row (8px top/left, 22px logo) - #5835
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe sidebar now accounts for the demo banner and uses updated header spacing, larger logo and icon dimensions, borderless switcher styling, and exact 16px menu insets. ChangesSidebar styling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 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 |
|
Added dd8d85b: the collapse/open toggle is now a 22px square with a 16px icon, so its optical centre sits on the same line as the resized wordmark (the old 28px pill rode 3px low against the top-aligned row). Screenshot-verified in expanded, collapsed, and dark states. |
|
@coderabbitai review |
The brand row top-aligns with 8px top and left padding instead of centering in its 48px band, and the wordmark grows from 20px to 22px tall. 99x22 keeps the SVG's intrinsic 361:80 ratio; the 85x20 box did not match it.
A 22px square with a 16px icon, so the toggle's optical centre sits on the same line as the resized logo; the old 28px pill rode 3px low against the top-aligned brand row. Verified by screenshot in expanded, collapsed and dark states.
Margin, not padding: the first pass converted the row to top-aligned 8px padding, which moved the logo UP (the 48px row's centring already held it 14px down) and read as no margin at all. Restore the centring and give the row mt-2/ml-2 so the logo visibly sits 8px further from the top and left. Collapsed keeps the toggle centred in the rail.
…t 8px The expanded menu rows were 94% wide with an 8px left margin, leaving ~6px on the right in the 236px rail while the brand row's toggle sits at 8px - hover a row and the highlight's right edge missed the toggle's by 2px. An exact calc(100%-16px) insets rows 8px on both sides at any width, so the edges line up.
2ed54bb to
99e2ea1
Compare
The bottom-of-sidebar project/org selector loses its resting border; the hover fill remains the affordance. Mahmoud's call: visible on hover, no box around it otherwise.
|
@coderabbitai review |
✅ Action performedReview finished.
|
Railway Preview Environment
Updated at 2026-08-09T21:18:02.821Z |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
web/oss/src/components/Sidebar/components/SidebarLogo.tsx (1)
24-25: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winKeep the added comments to one short line.
All four locations add two-line explanatory comments. Apply the same concise-comment rule at each site.
web/oss/src/components/Sidebar/components/SidebarLogo.tsx#L24-L25: Reduce the centering rationale to one short line.web/oss/src/components/Sidebar/components/SidebarLogo.tsx#L30-L31: Reduce the SVG sizing rationale to one short line.web/oss/src/components/Sidebar/components/SidebarToggleButton.tsx#L20-L21: Reduce the alignment rationale to one short line.web/oss/src/components/Sidebar/engine/SidebarMenu.tsx#L322-L323: Reduce the inset rationale to one short line.As per coding guidelines: Keep in-code comments to at most one short line; use longer comments only for genuinely surprising constraints such as bugs, races, or ordering requirements.
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: ffcf1560-a6fa-4ee4-b098-e8180277d4de
📒 Files selected for processing (4)
web/oss/src/components/Sidebar/components/ProjectOrgSwitcher/index.tsxweb/oss/src/components/Sidebar/components/SidebarLogo.tsxweb/oss/src/components/Sidebar/components/SidebarToggleButton.tsxweb/oss/src/components/Sidebar/engine/SidebarMenu.tsx
A transparent ::after hit extender (inset -3px) - the visual box, the row's alignment and Mahmoud's 22px optical choice are untouched; only the clickable area returns to its old size.
Same root cause as the home rail: on document-scrolling routes the fixed 38px demo banner covered the sidebar's brand row. The rail reads --ag-demo-banner-h (0px outside demo workspaces) for its top offset and height.
Two small brand-row adjustments Mahmoud asked for:
No margin or padding changes beyond those two. Collapsed mode keeps its centered toggle, gaining only the 8px top padding.