@devries-cameron20 / t3code Mirror · read-only / commits / b4f1f18b73
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 23:00 UTC

refactor(web): add radius="none" to ScrollArea (#13026)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

Julius Marminge committed Sep 22, 2026 at 12:22 UTC b4f1f18b735679aedc4369190fc3f07ecaf8966c
9 files changed +25 -18
apps/web/src/components/ChatMarkdown.tsx
+1 -1
@@ -772,7 +772,7 @@ function MarkdownTable({ children, ...props }: React.ComponentProps<"table">) {
772 className="chat-markdown-table-container"
773 data-expanded={expanded ? "true" : "false"}
774 >
775 - <ScrollArea chainVerticalScroll scrollFade className="w-full max-w-full rounded-none">
775 + <ScrollArea radius="none" chainVerticalScroll scrollFade className="w-full max-w-full">
776 <table ref={tableRef} {...props}>
777 {children}
778 </table>
apps/web/src/components/RightPanelTabs.tsx
+2 -1
@@ -1127,10 +1127,11 @@ export function RightPanelTabs(props: RightPanelTabsProps) {
1127 data-right-panel-tabbar
1128 >
1129 <ScrollArea
1130 + radius="none"
1131 ref={tabListRef}
1132 hideScrollbars
1133 scrollFade
1133 - className="min-w-0 flex-1 rounded-none"
1134 + className="min-w-0 flex-1"
1135 data-right-panel-tab-list
1136 >
1137 <div className="flex h-full w-max min-w-full items-center gap-1">
apps/web/src/components/chat/ComposerBanner.tsx
+2 -1
@@ -282,9 +282,10 @@ function Children({ className, render, ...props }: useRender.ComponentProps<"div
282 function Scroll({ className, ...props }: ComponentProps<typeof ScrollArea>) {
283 return (
284 <ScrollArea
285 + radius="none"
286 scrollFade
287 className={cn(
287 - "h-auto max-h-[min(24rem,40dvh)] rounded-none [&>[data-slot=scroll-area-viewport][data-has-overflow-y]]:pe-2",
288 + "h-auto max-h-[min(24rem,40dvh)] [&>[data-slot=scroll-area-viewport][data-has-overflow-y]]:pe-2",
289 className,
290 )}
291 {...props}
apps/web/src/components/files/FilePreviewPanel.tsx
+2 -1
@@ -1090,10 +1090,11 @@ export default function FilePreviewPanel({
1090 {relativePath && attachment === undefined ? (
1091 <div className={FILE_SURFACE_SUBHEADER_CLASS} data-surface-subheader>
1092 <ScrollArea
1093 + radius="none"
1094 ref={breadcrumbRef}
1095 hideScrollbars
1096 scrollFade
1096 - className="min-w-0 flex-1 rounded-none"
1097 + className="min-w-0 flex-1"
1098 data-file-breadcrumbs
1099 >
1100 <div className="flex h-full w-max min-w-full items-center text-xs">
apps/web/src/components/onboarding/WelcomeWizard.tsx
+2 -8
@@ -636,10 +636,7 @@ function AgentsStep({
636 const { environments } = useEnvironments();
637 return (
638 <StepShell title="Your agents" description="Agents available on your selected computers.">
639 - <ScrollArea
640 - scrollFade
641 - className="mt-5 h-auto max-h-96 [&_[data-slot=scroll-area-scrollbar]]:opacity-100"
642 - >
639 + <ScrollArea scrollFade className="mt-5 h-auto max-h-96">
640 <div className="space-y-5 pr-3">
641 {environmentIds.map((environmentId) => (
642 <ConnectedAgentsStep
@@ -1206,10 +1203,7 @@ function ImportStep({
1203 </div>
1204 </div>
1205 ) : null}
1209 - <ScrollArea
1210 - scrollFade
1211 - className="mt-2 h-auto max-h-80 [&_[data-slot=scroll-area-scrollbar]]:opacity-100"
1212 - >
1206 + <ScrollArea scrollFade className="mt-2 h-auto max-h-80">
1207 <div className="space-y-5 pr-3">
1208 {scans.map((scan) => {
1209 const scanCandidates = candidates.filter(
apps/web/src/components/settings/DiagnosticsSettings.tsx
+6 -3
@@ -172,10 +172,11 @@ function DiagnosticsTable({
172 }) {
173 return (
174 <ScrollArea
175 + radius="none"
176 chainVerticalScroll
177 scrollFade
178 hideScrollbars
178 - className="w-full max-w-full rounded-none"
179 + className="w-full max-w-full"
180 >
181 <table
182 className={cn("w-full text-left text-xs", minTableWidth, columnWidths && "table-fixed")}
@@ -355,10 +356,11 @@ function ProcessDiagnosticsTable({
356
357 return (
358 <ScrollArea
359 + radius="none"
360 chainVerticalScroll
361 scrollFade
362 hideScrollbars
361 - className="max-h-[min(64vh,44rem)] w-full max-w-full rounded-none border-t border-border/60"
363 + className="max-h-[min(64vh,44rem)] w-full max-w-full border-t border-border/60"
364 >
365 <table className="w-full min-w-[1040px] table-fixed text-left text-xs">
366 <colgroup>
@@ -1224,10 +1226,11 @@ export function DiagnosticsSettingsPanel() {
1226 <SettingsSection title="Span Logs">
1227 {data && data.latestWarningAndErrorLogs.length > 0 ? (
1228 <ScrollArea
1229 + radius="none"
1230 chainVerticalScroll
1231 scrollFade
1232 hideScrollbars
1230 - className="w-full max-w-full rounded-none"
1233 + className="w-full max-w-full"
1234 >
1235 <table className="w-full min-w-[920px] table-fixed text-left text-xs">
1236 <colgroup>
apps/web/src/components/settings/ProviderSettingsPanel.tsx
+1 -1
@@ -334,7 +334,7 @@ function ProviderSettingsPanelContent(target: ProviderSettingsTarget) {
334 options.length === 1 && options[0]?.entry.target._tag === "PrimaryConnectionTarget";
335 const deviceTabs =
336 !target.scoped && !onlyPrimaryDevice && options.length > 0 ? (
337 - <ScrollArea hideScrollbars scrollFade className="h-11 min-w-0 flex-1 rounded-none">
337 + <ScrollArea radius="none" hideScrollbars scrollFade className="h-11 min-w-0 flex-1">
338 <ToggleGroup
339 aria-label="Devices"
340 variant="segmented"
apps/web/src/components/ui/scroll-area.tsx
+8 -1
@@ -29,6 +29,7 @@ function ScrollArea({
29 scrollbarGutter = false,
30 hideScrollbars = false,
31 chainVerticalScroll = false,
32 + radius = "inherit",
33 ...props
34 }: ScrollAreaPrimitive.Root.Props & {
35 scrollFade?: boolean;
@@ -38,10 +39,16 @@ function ScrollArea({
39 scrollbarGutter?: boolean;
40 hideScrollbars?: boolean;
41 chainVerticalScroll?: boolean;
42 + /** The viewport clips to the parent's radius; "none" for a region flush to an edge. */
43 + radius?: "inherit" | "none";
44 }) {
45 return (
46 <ScrollAreaPrimitive.Root
44 - className={cn("relative size-full min-h-0 overflow-hidden rounded-[inherit]", className)}
47 + className={cn(
48 + "relative size-full min-h-0 overflow-hidden",
49 + radius === "none" ? "rounded-none" : "rounded-[inherit]",
50 + className,
51 + )}
52 {...props}
53 >
54 <ScrollAreaPrimitive.Viewport
scripts/lint-restyle-ceiling.ts
+1 -1
@@ -8,7 +8,7 @@ import * as NodeURL from "node:url";
8 // components/ui exports are migrated to variants (see vite.config.ts). This gate keeps the
9 // count from growing: CI fails when findings exceed the ceiling. Lower the ceiling when you
10 // migrate a file, and delete this script when the rule becomes an error.
11 -export const RESTYLE_CEILING = 1070;
11 +export const RESTYLE_CEILING = 1060;
12
13 const RULE = "shadcn(no-restyle)";
14