From a27949e9f7a6c2bced436961051c6b921990831f Mon Sep 17 00:00:00 2001 From: OpenSquared Date: Sat, 20 Jun 2026 06:58:47 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20hauteur=20fixe=20=C3=A9gale=20(288px)=20?= =?UTF-8?q?sur=20les=204=20cards=20Command=20Center?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/pages/Dashboard.tsx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/frontend/src/pages/Dashboard.tsx b/frontend/src/pages/Dashboard.tsx index 8b1609e..0b71ee2 100644 --- a/frontend/src/pages/Dashboard.tsx +++ b/frontend/src/pages/Dashboard.tsx @@ -351,7 +351,7 @@ export default function Dashboard() { const pfReal = pf?.realized_pnl ?? null return ( - +
📊 P&L
@@ -432,9 +432,9 @@ export default function Dashboard() { const strokeColor = isPositive ? '#34d399' : '#f87171' const gradId = 'pnlGrad' return ( -
-
Courbe PnL historique ({snaps.length} pts)
- +
+
Courbe PnL historique ({snaps.length} pts)
+ @@ -474,7 +474,7 @@ export default function Dashboard() { .slice(0, 5) return ( - +
🛡️ Risque
@@ -524,15 +524,15 @@ export default function Dashboard() { const mv = snap.mc_var_1d_pct const ts = snap.computed_at?.slice(0, 16).replace('T', ' ') return ( -
-
VaR 95% · {ts} UTC
-
+
+
VaR 95% · {ts} UTC
+
{[ { label: 'Hist.', val: hv, color: 'text-blue-400' }, { label: 'CVaR', val: cv, color: 'text-orange-400' }, { label: 'MC×1.5', val: mv, color: 'text-red-400' }, ].map(({ label, val, color }) => ( -
+
{label}
{val != null ? `${val >= 0 ? '+' : ''}${val.toFixed(2)}%` : '—'} @@ -569,7 +569,7 @@ export default function Dashboard() { ? (() => { try { return typeof last.commentary === 'string' ? JSON.parse(last.commentary) : last.commentary } catch { return null } })() : null return ( - +
🔄 Dernier Cycle @@ -660,7 +660,7 @@ export default function Dashboard() { ] return ( - +
🌐 Régime Macro @@ -696,7 +696,7 @@ export default function Dashboard() { {/* Key macro gauges */} {Object.keys(gauges).length > 0 && ( -
+
{KEY_GAUGES.map(({ key, label, color, fmt, hint }) => { const g = gauges[key] if (!g) return null @@ -719,7 +719,7 @@ export default function Dashboard() { {/* Trigger signals for dominant regime */} {reasons.length > 0 && ( -
+
{reasons.slice(0, 4).map((r: string, i: number) => ( {r}