DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.
Python ai-agentsai-tutorclawbotcli-tooldeepresearchinteractive-learninglearningmulti-agent-systemsrag
style(settings): divide with rules and whitespace, not boxes
Bingxi Zhao (Frank)3867bee52333
diff --git a/web/app/(utility)/settings/appearance/page.tsx b/web/app/(utility)/settings/appearance/page.tsxindex 0dea1b628..1578b88ff 100644--- a/web/app/(utility)/settings/appearance/page.tsx+++ b/web/app/(utility)/settings/appearance/page.tsx@@ -133,7 +133,7 @@ export default function AppearanceSettingsPage() {"Pick the colour palette and interface style. Each tile previews the theme it applies.",)}>- <div className="py-4">+ <div className="py-3.5">{/* Order is intentional: Default (pure-white neutral, the defaultselection; theme id "snow" kept for stored preferences) →warm-light Cream → warm-dark Dark → cool-dark Glass. */}@@ -169,7 +169,7 @@ export default function AppearanceSettingsPage() {"Choose how code snippets look across the app. Changes apply immediately to saved and streamed responses.",)}>- <div className="border-t border-[var(--border)]/50 px-1 py-4 first:border-t-0">+ <div className="border-t border-[var(--border)]/50 py-3.5 first:border-t-0"><div className="text-[13.5px] font-medium text-[var(--foreground)]">{t("Preview")}</div>diff --git a/web/app/(utility)/settings/document-parsing/page.tsx b/web/app/(utility)/settings/document-parsing/page.tsxindex 9dcc294f0..f6c8ea19d 100644--- a/web/app/(utility)/settings/document-parsing/page.tsx+++ b/web/app/(utility)/settings/document-parsing/page.tsx@@ -324,14 +324,14 @@ function ReadinessNotice({ readiness }: { readiness?: Readiness }) {if (!readiness) return null;if (readiness.ready) {return (- <div className="flex items-center gap-1.5 px-1 py-4 text-[12px] text-emerald-600 dark:text-emerald-400">+ <div className="flex items-center gap-1.5 py-3.5 text-[12px] text-emerald-600 dark:text-emerald-400"><CheckCircle2 className="h-3.5 w-3.5 shrink-0" />{t("Ready to parse.")}</div>);}return (- <div className="px-1 py-4">+ <div className="py-3.5"><div className="flex items-start gap-2 rounded-lg border border-amber-500/30 bg-amber-500/10 px-3 py-2.5 text-[12px] leading-relaxed text-amber-700 dark:text-amber-300"><XCircle className="mt-0.5 h-3.5 w-3.5 shrink-0" /><span className="min-w-0">{readiness.message}</span>diff --git a/web/app/(utility)/settings/tools/page.tsx b/web/app/(utility)/settings/tools/page.tsxindex 3e7299797..9d9ce9e51 100644--- a/web/app/(utility)/settings/tools/page.tsx+++ b/web/app/(utility)/settings/tools/page.tsx@@ -252,7 +252,7 @@ export default function ToolsSettingsPage() {{list.length}</span></header>- <div className="overflow-hidden rounded-xl border border-[var(--border)]/60 bg-[var(--card)]/40">+ <div className="border-t border-[var(--border)]/60">{list.map((tool, idx) => {const isOpen = expanded.has(tool.name);const hints = tool.hints[language];diff --git a/web/app/(utility)/settings/tts/page.tsx b/web/app/(utility)/settings/tts/page.tsxindex 7c8fe35ef..454f9d4d6 100644--- a/web/app/(utility)/settings/tts/page.tsx+++ b/web/app/(utility)/settings/tts/page.tsx@@ -10,7 +10,7 @@ function AutoplayToggle() {const { t } = useTranslation();const { value, setValue, loading } = useVoiceAutoplayPreference();return (- <div className="flex items-start justify-between gap-6 rounded-xl border border-[var(--border)]/60 bg-[var(--card)]/40 px-5 py-4">+ <div className="flex items-start justify-between gap-6 border-y border-[var(--border)]/50 py-3.5"><div className="min-w-0 flex-1"><div className="text-[13.5px] font-medium text-[var(--foreground)]">{t("Auto-play replies")}diff --git a/web/components/settings/ConnectionsEditor.tsx b/web/components/settings/ConnectionsEditor.tsxindex 8f5dd897d..46122b361 100644--- a/web/components/settings/ConnectionsEditor.tsx+++ b/web/components/settings/ConnectionsEditor.tsx@@ -231,7 +231,7 @@ export function ConnectionsEditor() {)}{connections.length > 0 && (- <div className="overflow-hidden rounded-xl border border-[var(--border)]">+ <div className="border-t border-[var(--border)]/60">{connections.map((connection, index) => (<ConnectionRowkey={connection.id}@@ -319,8 +319,8 @@ function ConnectionRow({);return (- <div className={first ? "" : "border-t border-[var(--border)]"}>- <div className="flex items-start gap-3 px-4 py-3.5">+ <div className={first ? "" : "border-t border-[var(--border)]/50"}>+ <div className="flex items-start gap-3 py-3.5"><ProviderIconprovider={connection.provider}size={18}diff --git a/web/components/settings/ServiceConfigEditor.tsx b/web/components/settings/ServiceConfigEditor.tsxindex 0abe8bd7e..e3a51e83e 100644--- a/web/components/settings/ServiceConfigEditor.tsx+++ b/web/components/settings/ServiceConfigEditor.tsx@@ -409,7 +409,7 @@ export function ServiceConfigEditor({ service }: { service: ServiceName }) {<div className="grid grid-cols-1 items-start gap-5 md:grid-cols-[200px_minmax(0,1fr)]">{/* ── Profile list (sticky so it stays put while the editor scrolls;stacked above the editor when there is no room beside it) ── */}- <aside className="self-start rounded-xl border border-[var(--border)]/60 bg-[var(--card)]/40 p-2 md:sticky md:top-4">+ <aside className="self-start rounded-xl bg-[var(--accent)]/40 p-2 md:sticky md:top-4"><div className="px-2 pb-2 pt-1 text-[11px] font-medium uppercase tracking-wide text-[var(--muted-foreground)]/70">{t("Profiles")}</div>@@ -577,9 +577,9 @@ export function ServiceConfigEditor({ service }: { service: ServiceName }) {</aside>{/* ── Editor ── */}- <div className="min-w-0 space-y-5">- <div className="rounded-xl border border-[var(--border)] p-5">- <div className="mb-4 flex items-center justify-between gap-2">+ <div className="min-w-0 space-y-7">+ <div>+ <div className="mb-2.5 flex items-center justify-between gap-2 border-b border-[var(--border)]/60 pb-2"><div className="text-[13px] font-medium text-[var(--foreground)]">{t("Provider connection")}</div>@@ -644,8 +644,8 @@ export function ServiceConfigEditor({ service }: { service: ServiceName }) {</div>{service !== "search" && (- <div className="rounded-xl border border-[var(--border)] p-5">- <div className="mb-4 flex items-center justify-between gap-2">+ <div>+ <div className="mb-2.5 flex items-center justify-between gap-2 border-b border-[var(--border)]/60 pb-2"><div className="text-[13px] font-medium text-[var(--foreground)]">{t("Models")}</div>@@ -1062,8 +1062,8 @@ export function ServiceConfigEditor({ service }: { service: ServiceName }) {)}{/* ── Diagnostics — per-service, inline ── */}- <div className="rounded-xl border border-[var(--border)]">- <div className="flex items-center justify-between px-5 py-3.5">+ <div className="border-t border-[var(--border)]/60">+ <div className="flex items-center justify-between py-2.5"><buttontype="button"onClick={() => setDiagnosticsOpen((v) => !v)}diff --git a/web/components/settings/SettingsOverview.tsx b/web/components/settings/SettingsOverview.tsxindex 9eaf60e6f..7818ce272 100644--- a/web/components/settings/SettingsOverview.tsx+++ b/web/components/settings/SettingsOverview.tsx@@ -176,7 +176,7 @@ export default function SettingsOverview() {<><Section title={t("Needs attention")}>{attention.length === 0 ? (- <div className="flex items-center gap-2 px-4 py-3 text-[12.5px] text-[var(--muted-foreground)]">+ <div className="flex items-center gap-2 py-3 text-[12.5px] text-[var(--muted-foreground)]"><Check className="h-3.5 w-3.5 text-emerald-500" />{t("Nothing to do — everything configured is working.")}</div>@@ -184,8 +184,8 @@ export default function SettingsOverview() {attention.map((item, index) => (<divkey={item.key}- className={`flex flex-wrap items-center justify-between gap-x-4 gap-y-1 px-4 py-3 ${- index === 0 ? "" : "border-t border-[var(--border)]"+ className={`flex flex-wrap items-center justify-between gap-x-4 gap-y-1 py-2.5 ${+ index === 0 ? "" : "border-t border-[var(--border)]/50"}`}><span className="text-[12.5px] text-[var(--foreground)]">@@ -207,8 +207,8 @@ export default function SettingsOverview() {{states.map((item, index) => (<divkey={item.leaf.key}- className={`flex flex-wrap items-center justify-between gap-x-4 gap-y-1 px-4 py-2.5 ${- index === 0 ? "" : "border-t border-[var(--border)]"+ className={`flex flex-wrap items-center justify-between gap-x-4 gap-y-1 py-2.5 ${+ index === 0 ? "" : "border-t border-[var(--border)]/50"}`}><Link@@ -297,13 +297,11 @@ function Section({children: React.ReactNode;}) {return (- <section className="mt-6">+ <section className="mt-7"><h2 className="mb-2 text-[12px] font-medium text-[var(--muted-foreground)]">{title}</h2>- <div className="overflow-hidden rounded-xl border border-[var(--border)]">- {children}- </div>+ <div className="border-t border-[var(--border)]/60">{children}</div></section>);}diff --git a/web/components/settings/SettingsStatusPanel.tsx b/web/components/settings/SettingsStatusPanel.tsxindex 73e9833e6..9943fba61 100644--- a/web/components/settings/SettingsStatusPanel.tsx+++ b/web/components/settings/SettingsStatusPanel.tsx@@ -27,7 +27,7 @@ export default function SettingsStatusPanel() {return (<sectiondata-tour="tour-status"- className="flex flex-wrap items-center gap-x-5 gap-y-2.5 rounded-xl border border-[var(--border)]/70 bg-[var(--card)]/50 px-4 py-3"+ className="flex flex-wrap items-center gap-x-5 gap-y-2.5 border-y border-[var(--border)]/60 py-2.5"><div className="flex items-center gap-2.5"><spandiff --git a/web/components/settings/TaskModelsEditor.tsx b/web/components/settings/TaskModelsEditor.tsxindex 2761c0d86..7b6ac4e1f 100644--- a/web/components/settings/TaskModelsEditor.tsx+++ b/web/components/settings/TaskModelsEditor.tsx@@ -121,7 +121,7 @@ export function TaskModelsEditor() {</Link></div>) : (- <div className="overflow-hidden rounded-xl border border-[var(--border)]">+ <div className="border-t border-[var(--border)]/60">{LLM_TASK_KEYS.map((task, index) => {const copy = TASK_COPY[task];const pinned = draft.services.llm.tasks?.[task];@@ -137,8 +137,8 @@ export function TaskModelsEditor() {return (<divkey={task}- className={`flex flex-wrap items-start gap-x-6 gap-y-3 px-4 py-4 ${- index === 0 ? "" : "border-t border-[var(--border)]"+ className={`flex flex-wrap items-start gap-x-6 gap-y-3 py-3.5 ${+ index === 0 ? "" : "border-t border-[var(--border)]/50"}`}><div className="min-w-0 flex-1 basis-64">diff --git a/web/components/settings/shared.tsx b/web/components/settings/shared.tsxindex 5772fba7c..58c0db105 100644--- a/web/components/settings/shared.tsx+++ b/web/components/settings/shared.tsx@@ -121,7 +121,7 @@ export function SettingRow({control: React.ReactNode;}) {return (- <div className="flex items-start justify-between gap-6 border-t border-[var(--border)]/50 px-1 py-4 first:border-t-0">+ <div className="flex items-start justify-between gap-6 border-t border-[var(--border)]/50 py-3.5 first:border-t-0"><div className="min-w-0 flex-1"><div className="text-[13.5px] font-medium text-[var(--foreground)]">{title}@@ -148,8 +148,8 @@ export function SettingSection({children: React.ReactNode;}) {return (- <section className="mb-10">- <header className="mb-3">+ <section className="mb-8">+ <header className="mb-2"><h2 className="text-[15px] font-semibold tracking-tight text-[var(--foreground)]">{title}</h2>@@ -159,9 +159,13 @@ export function SettingSection({</p>)}</header>- <div className="rounded-xl border border-[var(--border)]/60 bg-[var(--card)]/40 px-5">- {children}- </div>+ {/* A rule, not a box. The app divides with hairlines and whitespace —+ a bordered, tinted panel around rows that already separate+ themselves with hairlines was dividing the same content twice. The+ top rule is what tells a section where it starts, and it has to live+ here rather than on the first row because sections also hold custom+ content (theme tiles, previews) that draws no rule of its own. */}+ <div className="border-t border-[var(--border)]/60">{children}</div></section>);}