A desktop coding agent with free access to frontier models.
TypeScript
fix: appearance layout at narrow widths
ogsamrat2cf057012feb
diff --git a/apps/app/src/react-app/domains/settings/appearance/custom-theme-editor.tsx b/apps/app/src/react-app/domains/settings/appearance/custom-theme-editor.tsxindex c160b8aa..d789926d 100644--- a/apps/app/src/react-app/domains/settings/appearance/custom-theme-editor.tsx+++ b/apps/app/src/react-app/domains/settings/appearance/custom-theme-editor.tsx@@ -138,7 +138,7 @@ function ColourInput(props: {onKeyDown={(event) => {if (event.key === "Enter") commit((event.target as HTMLInputElement).value);}}- className="w-full min-w-0 bg-transparent font-mono text-xs text-foreground outline-none"+ className="w-full min-w-0 scroll-mb-24 bg-transparent font-mono text-xs text-foreground outline-none"data-testid={props.testId}/></div>@@ -188,7 +188,7 @@ function WarningBox(props: { warning: ContrastWarning; onUse: (token: string, cofunction Row(props: { label: string; children: ReactNode; note?: ReactNode; sub?: string }) {return (- <div className="grid grid-cols-[8.5rem_1fr] items-center gap-3 border-b border-border/60 py-2 last:border-b-0">+ <div className="grid scroll-mb-24 grid-cols-[8.5rem_1fr] items-center gap-3 border-b border-border/60 py-2 last:border-b-0"><div className="text-sm text-foreground">{props.label}{props.sub ? <div className="text-xs text-muted-foreground">{props.sub}</div> : null}@@ -313,7 +313,7 @@ export function CustomThemeEditor(props: CustomThemeEditorProps) {</div><div className="grid gap-6 @3xl/settings:grid-cols-[minmax(0,1fr)_17rem]">- <div className="min-w-0">+ <div className="min-w-0 pb-16"><Row label="Name"><inputid={nameId}diff --git a/apps/app/src/react-app/domains/settings/appearance/theme-presets-section.tsx b/apps/app/src/react-app/domains/settings/appearance/theme-presets-section.tsxindex 19563768..0a9cdc8b 100644--- a/apps/app/src/react-app/domains/settings/appearance/theme-presets-section.tsx+++ b/apps/app/src/react-app/domains/settings/appearance/theme-presets-section.tsx@@ -70,12 +70,12 @@ function Card(props: {)}><div className="h-16 w-full overflow-hidden rounded-lg border border-border">{props.children}</div>- <div className="flex items-center justify-between gap-2 px-1 pb-0.5 text-xs">+ <div className="flex flex-wrap items-baseline justify-between gap-x-2 px-1 pb-0.5 text-xs"><span className="flex min-w-0 items-center gap-1 font-medium text-foreground">{props.selected ? <Check className="size-3 shrink-0" /> : null}- <span className="truncate">{props.label}</span>+ <span className="break-words">{props.label}</span></span>- <span className="shrink-0 text-muted-foreground">{props.meta}</span>+ <span className="text-muted-foreground">{props.meta}</span></div></button>{props.action}@@ -92,7 +92,7 @@ export function ThemePresetsSection(props: Props) {Each preset has a light and a dark version (Midnight is dark only); the mode above picks which one you see.</LayoutSectionItemDescription></LayoutSectionItemHeader>- <div role="radiogroup" aria-label="Theme" className="grid grid-cols-2 gap-3 @2xl/settings:grid-cols-4">+ <div role="radiogroup" aria-label="Theme" className="grid grid-cols-2 gap-3 @xl/settings:grid-cols-3 @3xl/settings:grid-cols-4">{THEME_PRESETS.map((preset) => (<Cardkey={preset.id}diff --git a/apps/app/src/react-app/domains/settings/appearance/theme-section.tsx b/apps/app/src/react-app/domains/settings/appearance/theme-section.tsxindex 89d5f7b7..e2e0b0f5 100644--- a/apps/app/src/react-app/domains/settings/appearance/theme-section.tsx+++ b/apps/app/src/react-app/domains/settings/appearance/theme-section.tsx@@ -43,7 +43,7 @@ export function ThemeSection(props: ThemeSectionProps) {key={item.value}value={item.value}aria-label={item.label}- className="h-7 gap-1.5 rounded-md px-3 text-sm text-muted-foreground aria-pressed:bg-background aria-pressed:text-foreground aria-pressed:shadow-xs"+ className="h-7 gap-1.5 rounded-md border border-transparent px-3 text-sm text-muted-foreground aria-pressed:border-foreground/70 aria-pressed:bg-background aria-pressed:font-medium aria-pressed:text-foreground aria-pressed:shadow-xs"><item.icon className="size-3.5" />{item.label}diff --git a/apps/app/src/react-app/domains/settings/pages/appearance-view.tsx b/apps/app/src/react-app/domains/settings/pages/appearance-view.tsxindex 82e68d33..4699fc0d 100644--- a/apps/app/src/react-app/domains/settings/pages/appearance-view.tsx+++ b/apps/app/src/react-app/domains/settings/pages/appearance-view.tsx@@ -118,7 +118,7 @@ export function AppearanceView(props: AppearanceViewProps) {};return (- <LayoutStack className="max-w-5xl">+ <LayoutStack><ThemeSection {...props} /><Separator /><ThemePresetsSection