Uh oh!
There was an error while loading. Please reload this page.
Fix Sidebar V2 narrow-width issues: hover-action overlap and disappearing logo - #4464
Fix Sidebar V2 narrow-width issues: hover-action overlap and disappearing logo#4464erik-bobinski wants to merge 2 commits into
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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 |
ApprovabilityVerdict: Approved Pure CSS class changes fixing sidebar layout issues - switches from absolute positioning to CSS grid and adjusts a container query breakpoint. No runtime logic changes, just visual styling fixes. You can customize Macroscope's approvability policy. Learn more. |
t3dotgg
commented
Aug 27, 2026
Note 🤖 GPT-5.6 Sol responding on behalf of Theo We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together. Closing as superseded by the current sidebar layout. Hover controls now enter normal flow while the status moves out, and the current header keeps the wordmark visible. This patch targets the old SidebarV2 file and width threshold. Any remaining narrow-width issue needs a reproduction against the current components. Related work: #6246, #5672. If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed. If GitHub does not let you reopen it, leave a comment here and we'll take another look. |
What changed
Two small fixes for Sidebar V2 (beta) at narrow sidebar widths:
Hover actions no longer overlap the project title (
apps/web/src/components/SidebarV2.tsx). In the card row header, the snooze/settle hover actions were absolutely positioned over a slot sized only by the small time label, so at narrow sidebar widths the buttons painted on top of the project title. The time label and the hover actions now share a single CSS grid cell: the slot is always as wide as the wider of the two, the title truncates with an ellipsis instead of being overlapped, and hover still just cross-fades the label and actions with no layout shift. Keyboard access (focus-withinreveal) is unchanged.The T3 Code logo no longer disappears at narrow widths (
apps/web/src/index.css)..sidebar-brandis shown by asidebar-headercontainer query with a13.5rem(216px) threshold, but the sidebar can be resized down toTHREAD_SIDEBAR_MIN_WIDTH=13rem(208px). In that 208-215px band the logo vanished despite having ~100px of free space (the brand needs ~110px including the titlebar-control inset). Lowered the threshold to12.75remso the logo survives the sidebar's full resize range; the value stays just under the sidebar minimum to absorb the 1px border on the container's content box.Why
Both are visible polish bugs in the Sidebar V2 beta that only reproduce when the sidebar is dragged near its minimum width.
Before / After
Sidebar at its 208px minimum width, first row hovered:
Before: no logo in the header, and the clock + Settle buttons paint over the project title. After: logo visible, title truncates, actions sit cleanly to the right. Verified live in an isolated dev environment (measured 0px overlap between the actions and the title across both rows; previously 52px).
🤖 Generated with Claude Code
Note
Low Risk
CSS-only layout and container-query tweaks in Sidebar V2; no auth, data, or API changes.
Overview
Fixes two Sidebar V2 polish issues when the sidebar is dragged near its minimum width.
Card row header: The status/time label and snooze/settle hover actions now share a single CSS grid cell instead of absolutely stacking actions on a slot sized only by the label. The right column grows to fit the wider layer, the project title keeps truncating, and hover still cross-fades label vs actions without layout shift.
Header logo: The
sidebar-headercontainer query that shows.sidebar-brandis lowered from 13.5rem to 12.75rem so the T3 logo stays visible across the full resizable range down toTHREAD_SIDEBAR_MIN_WIDTH(13rem / 208px).Reviewed by Cursor Bugbot for commit 9888136. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix hover-action overlap and disappearing logo in narrow-width SidebarV2
SidebarV2Rowwith a single-cell CSS grid, so the time/status label and hover/focus controls occupy the same cell without overlap..sidebar-brandvisibility from13.5remto12.75remin index.css, preventing the logo from disappearing at narrow sidebar widths.Macroscope summarized 9888136.