Uh oh!
There was an error while loading. Please reload this page.
fix(ui): ensure new resource tab button is always visible - #3633
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Also updates the preview-mode tooltip to show a mode-specific label via Written by Cursor Bugbot for commit 96e4800. This will update automatically on new commits. Configure here. |
Greptile SummaryThis PR fixes a UI bug where the "Add Resource" tab button was scrolled off-screen when many resource tabs were open. The fix restructures the tab bar by moving Key changes:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["ResourceTabs (outer flex row)"]
A --> B["Collapse Button (shrink-0)"]
A --> C["wrapperRef div\nflex flex-1 min-w-0 gap-[6px]\n🔔 wheel listener"]
A --> D["Actions / PreviewMode (ml-auto shrink-0)"]
C --> E["scrollNodeRef div\nflex min-w-0 overflow-x-auto gap-[6px]\nonDragOver / onDrop"]
C --> F["AddResourceDropdown\n✅ Always visible (outside scroll)"]
E --> G["Tab buttons (map)"]
style F fill:#22c55e,color:#fff
style E fill:#3b82f6,color:#fff
style C fill:#f59e0b,color:#fff
Last reviewed commit: 06833ef |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…i#3633) * fix(ui): ensure new resource tab button is always visible * Fix vertical scroll input scrolling tabs horizontally * Fix incorrect tool tip on file edit button * Fix lint, attach scroll listener to tabs themselves --------- Co-authored-by: Theodore Li <theo@sim.ai>
Summary
Currently, if a mothership task has a bunch of resources, the new resource tab button is off the screen and must be scrolled to. Changed behavior so it always remains visible even with a lot of tabs.
Also adjusted tool tips for the preview/edit/split toggle. Previously this was stuck on "Preview mode" even when the button changed.
Type of Change
Testing
Validated that new tab still works and is visible even with a ton of resources. With a few resources, ensure new tab is directly to the right of the resource tab, instead of being grouped with the resource actions on the right.
Checklist
Screenshots/Videos
Tooltip behavior:


