- {/* Head band: where the installation stands, apart from the figures below it. */}
-
-
-
- {status ? t(`admin.trekApi.quota.state.${status.state}`) : t('admin.trekApi.quota.title')}
-
-
- {status?.tier && }
- {status?.keySource === 'env' && (
-
+
+
- )}
- {resetAt && }
-
-
-
-
+ {status ? t(`admin.trekApi.quota.state.${status.state}`) : '…'}
+
+ }
+ action={
+ <>
+ {status?.tier &&
}
+ {status?.keySource === 'env' && (
+
+ )}
+ {resetAt &&
}
+ >
+ }
+ >
{status && status.services.length > 0 && (
- {/* Foot band: the one action, kept off the figures. */}
- {canRegenerate && (
-
-
-
- )}
+ {/* The one action, on a rule of its own below the figures. */}
+ {canRegenerate && (
+
+
+
+ )}
+
-
+
);
}
diff --git a/client/src/components/Settings/settingsKit.tsx b/client/src/components/Settings/settingsKit.tsx
index c05d86513..150d156aa 100644
--- a/client/src/components/Settings/settingsKit.tsx
+++ b/client/src/components/Settings/settingsKit.tsx
@@ -38,7 +38,7 @@ export function SettingsHeader({ icon: Icon, title, subtitle, actions }: {
* badge and an action on the right) and its body below. `tone` tints the band:
* neutral for ordinary groups, danger for the destructive ones.
*/
-export function SettingsCard({ icon: Icon, title, hint, badge, action, tone = 'neutral', children, id, bodyClassName }: {
+export function SettingsCard({ icon: Icon, title, hint, badge, action, tone = 'neutral', children, id, bodyClassName, flush = false }: {
icon?: IconLike
title: ReactNode
/** One line under the title in the band. */
@@ -50,10 +50,12 @@ export function SettingsCard({ icon: Icon, title, hint, badge, action, tone = 'n
id?: string
/** Replaces the body's padded column. */
bodyClassName?: string
+ /** Inside another card: no gap below, the parent spaces its children. */
+ flush?: boolean
}) {
const tint = tone === 'danger' ? 'color-mix(in srgb, var(--danger) 9%, transparent)' : NEUTRAL_TINT
return (
-