GeezerVison is showing github.com — fix(web): usage window controls no longer overlap native titlebar buttons by j35dev · Pull Request #5730 · pingdotgg/t3code
Conversation
j35dev
commented
Aug 8, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
On Windows, the native minimize/close buttons overlay the top-right corner of the Usage page, colliding with the 7/30/90-day window selector and the refresh button.
Moved the header into the app's standard workspace-topbar layout, the same pattern Settings and the chat view use. On desktop it is now a drag region with height matching env(titlebar-area-height) and right padding that reserves the window-controls overlay width, so the window selector and refresh button sit clear of the native buttons. The web topbar keeps the same padding as the rest of the app.
Verified on Windows in the Electron app: the window selector and refresh button no longer overlap minimize/close. Before/after screenshots to be attached.
Before:

After:

Note Low Risk
Layout-only changes to Usage page chrome; no usage data or API behavior changes.
Overview
Fixes Usage page controls overlapping Windows minimize/close by giving the page a fixed top bar (like Chat and Settings) instead of putting window controls inside the scrollable header.
The 7/30/90-day selector and refresh are extracted into shared windowControls and pinned in a workspace top bar: on Electron, a drag region with wco right padding so controls sit left of native titlebar buttons; on web, workspace-topbar with COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS. Scrollable metrics/charts live in a flex-1 ScrollArea below; the date range moves into that body as muted text (the large in-page “Usage” title is removed).
Reviewed by Cursor Bugbot for commit 1a38a03. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Fix usage page window controls overlapping native titlebar buttons in Electron
Reworks the layout of UsagePage.tsx to prevent the window range and refresh controls from overlapping native Electron titlebar buttons. In Electron, a compact top bar renders with COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS and a small 'Usage' label; on web, a workspace-topbar header uses the same inset class. The date range display moves from the header into the main content area, and the main content is wrapped in a ScrollArea that fills remaining space.
Macroscope summarized 1a38a03.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Important
Review skipped
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 109347e5-d0a6-40d6-bfd1-a5456543a815
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
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.
❤️ Share
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1a38a03. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
<span className="text-sm font-medium text-foreground">Usage</span>
|
|
|
<div className="ms-auto flex items-center gap-2">{windowControls}</div>
|
|
|
</header>
|
|
|
)}
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usage shell skips main column flex
Medium Severity
The new Usage page root is a plain h-full column beside the sidebar, without SidebarInset / flex-1 / min-w-0 like Settings and chat. It also drops the old root ScrollArea w-full, so the titlebar may shrink to content width. ms-auto window controls and the Electron drag-region then fail to span to the window’s right edge where WCO padding is meant to clear native buttons.
Reviewed by Cursor Bugbot for commit 1a38a03. Configure here.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Needs human review
This UI layout fix for Electron window controls reorganizes the component structure without behavioral changes. However, the open review comment identifies that the new layout may be missing flex classes (SidebarInset/flex-1/min-w-0) used by similar pages, which could cause the titlebar to not span correctly. Human review recommended to verify the fix is complete.
You can customize Macroscope's approvability policy. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Superseded by upstream #5823 (fix(web): unify usage page chrome), which already lands the same window-controls-overlay topbar for the Usage page. Closing as redundant.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|