From 3414f6099a0bfaf0796d26faea817e2e367f941f Mon Sep 17 00:00:00 2001 From: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com> Date: Tue, 22 Sep 2026 00:44:17 -0700 Subject: [PATCH] refactor(web): add radius="none" to ScrollArea Eight scroll areas opted out of the inherited radius with rounded-none because they sit flush to a panel edge. Expose radius="none" for that. The onboarding wizard also forced its scrollbars visible; scrollbars reveal on hover and scroll everywhere else, and now there too. Lowers the no-restyle ceiling from 792 to 782. Co-Authored-By: Claude Fable 5 --- apps/web/src/components/ChatMarkdown.tsx | 2 +- apps/web/src/components/RightPanelTabs.tsx | 3 ++- apps/web/src/components/chat/ComposerBanner.tsx | 3 ++- apps/web/src/components/files/FilePreviewPanel.tsx | 3 ++- apps/web/src/components/onboarding/WelcomeWizard.tsx | 10 ++-------- .../src/components/settings/DiagnosticsSettings.tsx | 9 ++++++--- .../src/components/settings/ProviderSettingsPanel.tsx | 2 +- apps/web/src/components/ui/scroll-area.tsx | 9 ++++++++- scripts/lint-restyle-ceiling.ts | 2 +- 9 files changed, 25 insertions(+), 18 deletions(-) diff --git a/apps/web/src/components/ChatMarkdown.tsx b/apps/web/src/components/ChatMarkdown.tsx index 3b398dd5100e..90fca5356804 100644 --- a/apps/web/src/components/ChatMarkdown.tsx +++ b/apps/web/src/components/ChatMarkdown.tsx @@ -772,7 +772,7 @@ function MarkdownTable({ children, ...props }: React.ComponentProps<"table">) { className="chat-markdown-table-container" data-expanded={expanded ? "true" : "false"} > - + {children}
diff --git a/apps/web/src/components/RightPanelTabs.tsx b/apps/web/src/components/RightPanelTabs.tsx index 23cea9c28835..e66909c0f9f5 100644 --- a/apps/web/src/components/RightPanelTabs.tsx +++ b/apps/web/src/components/RightPanelTabs.tsx @@ -1127,10 +1127,11 @@ export function RightPanelTabs(props: RightPanelTabsProps) { data-right-panel-tabbar >
diff --git a/apps/web/src/components/chat/ComposerBanner.tsx b/apps/web/src/components/chat/ComposerBanner.tsx index cd1d4bd6be42..bdd28ce555a9 100644 --- a/apps/web/src/components/chat/ComposerBanner.tsx +++ b/apps/web/src/components/chat/ComposerBanner.tsx @@ -282,9 +282,10 @@ function Children({ className, render, ...props }: useRender.ComponentProps<"div function Scroll({ className, ...props }: ComponentProps) { return ( [data-slot=scroll-area-viewport][data-has-overflow-y]]:pe-2", + "h-auto max-h-[min(24rem,40dvh)] [&>[data-slot=scroll-area-viewport][data-has-overflow-y]]:pe-2", className, )} {...props} diff --git a/apps/web/src/components/files/FilePreviewPanel.tsx b/apps/web/src/components/files/FilePreviewPanel.tsx index 9e9464ca4516..d51141d7896f 100644 --- a/apps/web/src/components/files/FilePreviewPanel.tsx +++ b/apps/web/src/components/files/FilePreviewPanel.tsx @@ -1090,10 +1090,11 @@ export default function FilePreviewPanel({ {relativePath && attachment === undefined ? (
diff --git a/apps/web/src/components/onboarding/WelcomeWizard.tsx b/apps/web/src/components/onboarding/WelcomeWizard.tsx index 7e8dea7f2dea..99e0e8513e84 100644 --- a/apps/web/src/components/onboarding/WelcomeWizard.tsx +++ b/apps/web/src/components/onboarding/WelcomeWizard.tsx @@ -636,10 +636,7 @@ function AgentsStep({ const { environments } = useEnvironments(); return ( - +
{environmentIds.map((environmentId) => (
) : null} - +
{scans.map((scan) => { const scanCandidates = candidates.filter( diff --git a/apps/web/src/components/settings/DiagnosticsSettings.tsx b/apps/web/src/components/settings/DiagnosticsSettings.tsx index 0a987eca8c1d..0fe1ae2f624e 100644 --- a/apps/web/src/components/settings/DiagnosticsSettings.tsx +++ b/apps/web/src/components/settings/DiagnosticsSettings.tsx @@ -172,10 +172,11 @@ function DiagnosticsTable({ }) { return (
@@ -1224,10 +1226,11 @@ export function DiagnosticsSettingsPanel() { {data && data.latestWarningAndErrorLogs.length > 0 ? (
diff --git a/apps/web/src/components/settings/ProviderSettingsPanel.tsx b/apps/web/src/components/settings/ProviderSettingsPanel.tsx index 7f09e89c53df..509a758f3ccb 100644 --- a/apps/web/src/components/settings/ProviderSettingsPanel.tsx +++ b/apps/web/src/components/settings/ProviderSettingsPanel.tsx @@ -334,7 +334,7 @@ function ProviderSettingsPanelContent(target: ProviderSettingsTarget) { options.length === 1 && options[0]?.entry.target._tag === "PrimaryConnectionTarget"; const deviceTabs = !target.scoped && !onlyPrimaryDevice && options.length > 0 ? ( - +