Skip to content

fix(web): keep Inbox reset button clickable and visible with right panel open - #140

Merged
mfituri merged 1 commit into
mainfrom
t3/fix-inbox-reset-bug
Nov 21, 2026
Merged

mfituri merged 1 commit into
mainfrom
t3/fix-inbox-reset-bug

Conversation

@mfituri

@mfituri mfituri commented Nov 21, 2026

Copy link
Copy Markdown

On Inbox threads with the right panel open in Electron, WorkspaceTitlebarControls is rendered at the root while the sibling <header className="drag-region"> only punched out a fixed w-46.5 no-drag region (sized before ChatInboxResetButton was added). In pane strip mode, the controls switch to absolute while the punch-out stayed fixed, and in narrow/sheet mode with the right panel open (rightPanelControlsInPanel), ChatInboxResetButton was omitted from layoutControls. As a result, clicks on the Inbox reset button could be swallowed by the window drag region or the button was not shown at all.

Widened the Electron no-drag punch-out on Inbox threads (w-54.5) and positioned it absolute in pane strip mode, marked InboxResetIconButton's tooltip trigger wrapper [-webkit-app-region:no-drag], and rendered <ChatInboxResetButton> in the sheet layoutControls alongside {panelToggleControls}.

Gemini 4 Neon via Antigravity

@cursor

cursor Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
UI-only Electron title-bar and right-panel layout tweaks; no auth, data, or API changes.

Overview
Fixes Inbox reset usability when the right panel is open, especially in the Electron desktop client.

The native window drag region no-drag punch-out is wider on Inbox threads (w-54.5 vs w-46.5) to cover the extra reset control, switches to absolute positioning in pane-strip mode (was always fixed), and InboxResetIconButton marks its tooltip wrapper with [-webkit-app-region:no-drag] so clicks are not eaten by the title bar.

ChatInboxResetButton is now rendered in the right-panel sheet layoutControls next to maximize and panel toggles, so it appears when controls move into the panel on narrow layouts (rightPanelControlsInPanel).

Reviewed by Cursor Bugbot for commit 1278aaf. Bugbot is set up for automated code reviews on this repo. Configure here.

@mfituri
mfituri merged commit 877de71 into main Nov 21, 2026
27 checks passed
@mfituri
mfituri deleted the t3/fix-inbox-reset-bug branch November 21, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant