Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(ui): Settings fills the window again instead of a left-hand strip

rubenluetke10-beepee676630c345
diff --git a/jarvis/ui/web/frontend/src/views/SettingsView.tsx b/jarvis/ui/web/frontend/src/views/SettingsView.tsx
index 641e95fdda..7243de51d1 100644
--- a/jarvis/ui/web/frontend/src/views/SettingsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/SettingsView.tsx
@@ -96,7 +96,7 @@ export function SettingsView() {
];
return (
- <div className="flex h-full flex-col">
+ <div className="flex h-full min-h-0 flex-col px-6">
<SectionHeader
icon={<Settings />}
title={t("settings_view.title")}
@@ -106,13 +106,15 @@ export function SettingsView() {
by its own route, so one of them throwing must cost the user that one
panel — not the ability to change any setting at all.
- The measure and the rhythm live here, once: settings are option lists
- and single-column forms, so they stop at the 640px form measure rather
- than stretching an option card holding two words across the window,
- and the groups are separated by the 32px group step — the step the
- section was missing entirely, which is why it read as one mesh. The
- horizontal page padding comes from the shell, not from here. */}
- <div className="flex-1 space-y-group overflow-y-auto scrollbar-jarvis pb-group [&>*]:max-w-form">
+ Cards run the full section width (the 640px form measure left a
+ column of cards in a sea of black — the same verdict that retired
+ the shell-level page measure). Groups sit 32px apart so the section
+ does not read as one mesh. Horizontal padding lives here: the shell
+ does not supply it. */}
+ <div
+ data-testid="settings-scroll"
+ className="min-h-0 flex-1 space-y-group overflow-y-auto scrollbar-jarvis pb-group"
+ >
<SettingsGroupBoundary group="languages">
<LanguagesGroup />
</SettingsGroupBoundary>
diff --git a/jarvis/ui/web/frontend/src/views/settings/SettingsBlock.tsx b/jarvis/ui/web/frontend/src/views/settings/SettingsBlock.tsx
index aafbd819fc..29642f0fa5 100644
--- a/jarvis/ui/web/frontend/src/views/settings/SettingsBlock.tsx
+++ b/jarvis/ui/web/frontend/src/views/settings/SettingsBlock.tsx
@@ -6,10 +6,11 @@ import type { LucideIcon } from "lucide-react";
* Telephony, Wiki) is built from, so the zone reads as a single consistent list
* of optional integrations instead of four hand-rolled sections.
*
- * A block is an OBJECT: a card sized to its content, capped at the form measure
- * so it never becomes a full-width wall (rule 1 — lift scales inversely with
- * area). Separation is fill first: --card carries it, the hairline only
- * finishes the edge, and there is no shadow because a block does not float.
+ * A block is an OBJECT: a card that fills the section it sits in. A 640px
+ * form cap was tried and left a column of cards in a sea of black; the
+ * section owns the width, the card follows. Separation is fill first:
+ * --card carries it, the hairline only finishes the edge, and there is no
+ * shadow because a block does not float.
*
* The icon used to sit inside a 36px tinted disc. The disc was a wrapper around
* one glyph and nothing else, and it made the icon the brightest mark in a row
@@ -32,7 +33,7 @@ export function SettingsBlock({
children?: ReactNode;
}) {
return (
- <section className="max-w-form overflow-hidden rounded-lg border border-border bg-card p-block">
+ <section className="w-full overflow-hidden rounded-lg border border-border bg-card p-block">
<div className="flex items-start gap-3">
<span
aria-hidden
diff --git a/jarvis/ui/web/frontend/src/views/settings/SettingsResilience.test.tsx b/jarvis/ui/web/frontend/src/views/settings/SettingsResilience.test.tsx
index eea1f64184..39e5b06280 100644
--- a/jarvis/ui/web/frontend/src/views/settings/SettingsResilience.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/settings/SettingsResilience.test.tsx
@@ -134,5 +134,10 @@ describe("SettingsView against an empty backend", () => {
expect(screen.getAllByText("Deutsch (German)").length).toBeGreaterThan(0);
});
expect(screen.getByTestId("combo-field-call")).toBeTruthy();
+ // A 640px form cap left the groups as a left-hand column in a sea of
+ // black. The section fills the window; page padding is on the column.
+ const scroll = screen.getByTestId("settings-scroll");
+ expect(scroll.className).not.toMatch(/max-w-form/);
+ expect(scroll.parentElement?.className).toMatch(/px-6/);
});
});