From 092affa22fd07dd1d8a77e2de344bca2f6e12d36 Mon Sep 17 00:00:00 2001 From: Cyrus Gray <144336577+graycyrus@users.noreply.github.com> Date: Thu, 28 May 2026 23:50:35 +0530 Subject: [PATCH] fix(settings): Background Loops page layout overflow and duplicate label (#2693) Co-authored-by: Ghost Scripter Co-authored-by: M3gA-Mind Co-authored-by: Claude Sonnet 4.6 --- .../components/settings/panels/AIPanel.tsx | 48 +++++++++++-------- app/src/lib/i18n/chunks/ar-4.ts | 2 +- app/src/lib/i18n/chunks/bn-4.ts | 2 +- app/src/lib/i18n/chunks/de-4.ts | 2 +- app/src/lib/i18n/chunks/en-4.ts | 2 +- app/src/lib/i18n/chunks/es-4.ts | 2 +- app/src/lib/i18n/chunks/fr-4.ts | 2 +- app/src/lib/i18n/chunks/hi-4.ts | 2 +- app/src/lib/i18n/chunks/id-4.ts | 2 +- app/src/lib/i18n/chunks/it-4.ts | 2 +- app/src/lib/i18n/chunks/ko-4.ts | 2 +- app/src/lib/i18n/chunks/pt-4.ts | 2 +- app/src/lib/i18n/chunks/ru-4.ts | 2 +- app/src/lib/i18n/chunks/zh-CN-4.ts | 2 +- app/src/lib/i18n/en.ts | 2 +- 15 files changed, 43 insertions(+), 33 deletions(-) diff --git a/app/src/components/settings/panels/AIPanel.tsx b/app/src/components/settings/panels/AIPanel.tsx index e60f5326f..3e7d2a965 100644 --- a/app/src/components/settings/panels/AIPanel.tsx +++ b/app/src/components/settings/panels/AIPanel.tsx @@ -914,24 +914,32 @@ const MetricTile = ({ value: string; detail?: string; }) => ( -
-
+
+
{label}
-
{value}
+
+ {value} +
{detail ? ( -
{detail}
+
+ {detail} +
) : null}
); const FormulaRow = ({ label, value, detail }: { label: string; value: string; detail: string }) => ( -
+
- {label} - {value} + + {label} + + + {value} +
-
{detail}
+
{detail}
); @@ -1167,7 +1175,7 @@ export const BackgroundLoopControls = ({ const showHeartbeat = view === 'all' || view === 'heartbeat'; const showLedger = view === 'all' || view === 'ledger'; const gridCols = - view === 'all' ? 'lg:grid-cols-[minmax(0,1fr)_minmax(300px,0.8fr)]' : 'lg:grid-cols-1'; + view === 'all' ? 'md:grid-cols-[minmax(0,1fr)_minmax(260px,0.8fr)]' : 'grid-cols-1'; return (
@@ -1237,9 +1245,9 @@ export const BackgroundLoopControls = ({ void applyHeartbeatPatch({ notify_meetings: !settings.notify_meetings }) } /> -
-