From 8946267d80ed1d683639929a41d83cd750c54c01 Mon Sep 17 00:00:00 2001 From: Gahow Wang Date: Fri, 25 Sep 2026 00:16:39 +0800 Subject: [PATCH] fix(live): remount strategy detail when switching focused strategy Keying LiveStrategyDetail by strategy name resets its child state (trade-log pagination), so switching strategies no longer keeps the previous page index. Co-Authored-By: Claude Opus 5.5 (1M context) --- src/client/LivePage.tsx | 2 +- src/client/styles.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/LivePage.tsx b/src/client/LivePage.tsx index c44d7af..60f3c2c 100644 --- a/src/client/LivePage.tsx +++ b/src/client/LivePage.tsx @@ -176,7 +176,7 @@ export function LivePage() {
{focused ? ( - + ) : (
diff --git a/src/client/styles.css b/src/client/styles.css index 67d2d31..f0abd65 100644 --- a/src/client/styles.css +++ b/src/client/styles.css @@ -2227,6 +2227,7 @@ input:focus { .liveListMeta { display: flex; justify-content: space-between; + gap: 8px; font-size: 10px; color: #6f7c8f; font-weight: 700;