Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(settings): remove duplicate padding in embedded panel mode

Steven Enamakel5cf1bcd1ad2f
diff --git a/app/src/components/settings/panels/MascotPanel.tsx b/app/src/components/settings/panels/MascotPanel.tsx
index 7010dc7528..1c05f9cb77 100644
--- a/app/src/components/settings/panels/MascotPanel.tsx
+++ b/app/src/components/settings/panels/MascotPanel.tsx
@@ -891,8 +891,9 @@ const MascotPanel = ({ embedded = false }: MascotPanelProps) => {
);
// Embedded inside the tabbed Personality & Face page: the parent owns the
- // header, so render just the padded body.
- if (embedded) return <div className="p-4 space-y-5">{body}</div>;
+ // header AND the page gutter (`SettingsPanel` supplies `p-4` now), so this
+ // renders the body flush — a `p-4` here would indent it twice.
+ if (embedded) return <div className="space-y-5">{body}</div>;
return <SettingsPanel>{body}</SettingsPanel>;
};
diff --git a/app/src/components/settings/panels/NotificationRoutingPanel.tsx b/app/src/components/settings/panels/NotificationRoutingPanel.tsx
index 151bb6be73..c28843f3fb 100644
--- a/app/src/components/settings/panels/NotificationRoutingPanel.tsx
+++ b/app/src/components/settings/panels/NotificationRoutingPanel.tsx
@@ -262,7 +262,7 @@ const NotificationRoutingPanel = ({ embedded = false }: NotificationRoutingPanel
// Embedded inside the tabbed Notifications page: the parent owns the header,
// so render just the padded body.
- if (embedded) return <div className="p-4 space-y-5">{body}</div>;
+ if (embedded) return <div className="space-y-5">{body}</div>;
return <SettingsPanel>{body}</SettingsPanel>;
};