mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-24 21:41:08 +02:00
fix(x): default settings dialog tabs to scrollable
Invert the tab scroll logic in the settings dialog content area: instead of listing every tab that should scroll, default to overflow-y-auto and only opt out the JSON editor tabs (which render a self-scrolling full-height textarea) and note-tagging (which manages its own scroll region). New tabs are no longer clipped by the fixed-height dialog unless explicitly opted out.
This commit is contained in:
parent
40e450f0ae
commit
b893700da6
1 changed files with 4 additions and 1 deletions
|
|
@ -2802,7 +2802,10 @@ export function SettingsDialog({ children, defaultTab = "account", open: control
|
|||
</div>
|
||||
|
||||
{/* Content */}
|
||||
<div className={cn("flex-1 px-6 pb-5 min-h-0", (activeTab === "models" || activeTab === "connections" || activeTab === "mobile" || activeTab === "account" || activeTab === "code-mode" || activeTab === "notifications" || activeTab === "advanced") ? "overflow-y-auto" : activeTab === "note-tagging" ? "overflow-hidden flex flex-col" : "overflow-hidden")}>
|
||||
{/* JSON tabs render a full-height textarea (it scrolls itself);
|
||||
note-tagging manages its own scroll region; everything else
|
||||
scrolls here so tall tabs aren't clipped by the fixed dialog. */}
|
||||
<div className={cn("flex-1 px-6 pb-5 min-h-0", isJsonTab ? "overflow-hidden" : activeTab === "note-tagging" ? "overflow-hidden flex flex-col" : "overflow-y-auto")}>
|
||||
{activeTab === "account" ? (
|
||||
<AccountSettings dialogOpen={open} />
|
||||
) : activeTab === "connections" ? (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue