fix(settings): contain settings page scrolling
This commit is contained in:
@@ -669,20 +669,16 @@ export const SettingsView: React.FC<SettingsViewProps> = ({ onClose, forceMobile
|
||||
<div className={cn('w-[264px] min-w-[264px] border-r', runtimeCtx.isVSCode ? 'bg-background' : 'bg-sidebar')} style={{ borderColor: 'var(--interactive-border)' }}>
|
||||
<ErrorBoundary>{renderPageSidebar(settingsSlug, {})}</ErrorBoundary>
|
||||
</div>
|
||||
<div className="flex-1 overflow-auto scrollbar-none bg-background">
|
||||
<div className="mx-auto h-full w-full max-w-3xl">
|
||||
<ErrorBoundary>{renderPageContent(settingsSlug)}</ErrorBoundary>
|
||||
</div>
|
||||
<div className="flex-1 min-h-0 overflow-hidden bg-background">
|
||||
<ErrorBoundary>{renderPageContent(settingsSlug)}</ErrorBoundary>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="h-full overflow-auto scrollbar-none bg-background">
|
||||
<div className="mx-auto h-full w-full max-w-3xl">
|
||||
<ErrorBoundary>{renderPageContent(settingsSlug)}</ErrorBoundary>
|
||||
</div>
|
||||
<div className="h-full min-h-0 overflow-hidden bg-background">
|
||||
<ErrorBoundary>{renderPageContent(settingsSlug)}</ErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1446,3 +1446,8 @@ textarea[data-terminal-hidden-input="true"]::placeholder {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* Settings dialog: hide the overlay scrollbar; wheel/keyboard scroll still works. */
|
||||
[data-settings-view="true"] .overlay-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user