From a3b1b5c80072443162e91078e8cf0c4857c57b2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=87=E8=96=87=E5=AE=89?= Date: Thu, 15 Jan 2026 22:27:57 +0800 Subject: [PATCH] a --- frontend/src/components/StatsDashboard.css | 1 + frontend/src/components/StatsDashboard.jsx | 13 +++++++------ .../src/components/RecommendationsViewer.css | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/StatsDashboard.css b/frontend/src/components/StatsDashboard.css index c8793e1..f7d0c30 100644 --- a/frontend/src/components/StatsDashboard.css +++ b/frontend/src/components/StatsDashboard.css @@ -82,6 +82,7 @@ color: #666; font-weight: 500; font-size: 0.9rem; + width: 100px; } @media (min-width: 768px) { diff --git a/frontend/src/components/StatsDashboard.jsx b/frontend/src/components/StatsDashboard.jsx index 9f52cd0..469af42 100644 --- a/frontend/src/components/StatsDashboard.jsx +++ b/frontend/src/components/StatsDashboard.jsx @@ -249,7 +249,13 @@ const StatsDashboard = () => { {/* 止损止盈比例 */} -
+ + + {trade.entry_time && ( +
开仓时间: {formatEntryTime(trade.entry_time)}
+ )} +
+
止损比例: -{stopLossPercent.toFixed(2)}% (价: {stopLossPrice.toFixed(4)}) @@ -259,11 +265,6 @@ const StatsDashboard = () => { (价: {takeProfitPrice.toFixed(4)})
- - {trade.entry_time && ( -
开仓时间: {formatEntryTime(trade.entry_time)}
- )} -
= 0 ? 'positive' : 'negative'}`}> {parseFloat(trade.pnl || 0).toFixed(2)} USDT diff --git a/recommendations-viewer/src/components/RecommendationsViewer.css b/recommendations-viewer/src/components/RecommendationsViewer.css index 9b5ce65..84cf3dc 100644 --- a/recommendations-viewer/src/components/RecommendationsViewer.css +++ b/recommendations-viewer/src/components/RecommendationsViewer.css @@ -265,6 +265,7 @@ font-size: 12px; color: #666; font-weight: bold; + width: 100px; } .param-item span {