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): balance API key provider layout

rubenluetke10-beep960fa0b4641a
diff --git a/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx b/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx
index 1368977cd5..eac63a0a5a 100644
--- a/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx
+++ b/jarvis/ui/web/frontend/src/components/providers/ProviderTierSection.tsx
@@ -827,6 +827,7 @@ export function ProviderCategory({
intro,
localMode = false,
onDisableLocalMode,
+ wideGrid = false,
}: {
meta: CategoryMeta;
tier: ProviderTier;
@@ -845,6 +846,7 @@ export function ProviderCategory({
localMode?: boolean;
/** Turns Local Mode back off from the notice above the list. */
onDisableLocalMode?: () => void;
+ wideGrid?: boolean;
}) {
const t = useT();
const allTierProviders = providers.filter(
@@ -904,6 +906,7 @@ export function ProviderCategory({
onChanged={onChanged}
onActivateOptimistic={onActivateOptimistic}
health={health}
+ wideGrid={wideGrid}
/>
)}
</div>
@@ -919,6 +922,7 @@ export function TierSection({
onChanged,
onActivateOptimistic,
health,
+ wideGrid = false,
}: {
providers: ProviderDescriptor[];
onChanged: () => void;
@@ -926,6 +930,7 @@ export function TierSection({
/** Tier health — handed only to the ACTIVE card, since section-health tests
* exactly the one provider powering this tier. */
health?: SectionHealth;
+ wideGrid?: boolean;
}) {
const tierHasActive = providers.some((p) => p.active);
// The provider this tier actually RUNS on leads the list. Somebody who just
@@ -962,10 +967,18 @@ export function TierSection({
return (
<ul
data-testid="provider-list"
- className="divide-y divide-border/70 overflow-hidden rounded-surface border border-border bg-card"
+ className={cn(
+ wideGrid
+ ? "grid items-start gap-3"
+ : "divide-y divide-border/70 overflow-hidden rounded-surface border border-border bg-card",
+ )}
+ style={wideGrid ? { gridTemplateColumns: "repeat(auto-fit, minmax(min(100%, 34rem), 1fr))" } : undefined}
>
{sorted.map((p) => (
- <li key={p.id}>
+ <li
+ key={p.id}
+ className={wideGrid ? "min-w-0 overflow-hidden rounded-surface border border-border bg-card" : undefined}
+ >
<ProviderCard
descriptor={p}
onChanged={onChanged}
diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
index 5dcb1947c2..10ba76238b 100644
--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
@@ -137,13 +137,11 @@ export function ApiKeysView() {
data-testid="api-keys-provider-scroll"
className="min-h-0 flex-1 overflow-y-auto scrollbar-jarvis px-6 py-3"
>
- {/* Readability: the provider cards used to stretch across the full
- window width (2000px+ on wide screens). One centered measure keeps
- every card scannable; the key prop re-runs the rise animation on
- each tab/mode change (respects prefers-reduced-motion). */}
+ {/* Use the available desktop width while keeping forms at a readable
+ measure. The key re-runs the rise animation on tab/mode changes. */}
<div
key={`${engineMode}-${active}`}
- className="profile-rise w-full max-w-5xl"
+ className="profile-rise mx-auto w-full max-w-[1440px]"
>
{(active === "brain" ||
active === "tts" ||
@@ -160,6 +158,7 @@ export function ApiKeysView() {
health={health[active]}
localMode={localMode}
onDisableLocalMode={() => setLocalMode(false)}
+ wideGrid
/>
)}
{active === "realtime" && (