feat:隐藏持仓的时候同时隐藏颜色

This commit is contained in:
hzm
2026-03-12 23:01:39 +08:00
parent 2816a6c0dd
commit 5981440881
4 changed files with 21 additions and 10 deletions

View File

@@ -244,6 +244,7 @@ export default function GroupSummary({
<span style={{ fontSize: '16px', marginRight: 2 }}>¥</span>
{isMasked ? (
<span
className="mask-text"
style={{ fontSize: assetSize, position: 'relative', top: 4 }}
>
******
@@ -278,7 +279,9 @@ export default function GroupSummary({
}}
>
{isMasked ? (
<span style={{ fontSize: metricSize }}>******</span>
<span className="mask-text" style={{ fontSize: metricSize }}>
******
</span>
) : summary.hasAnyTodayData ? (
<>
<span style={{ marginRight: 1 }}>
@@ -331,7 +334,9 @@ export default function GroupSummary({
title="点击切换金额/百分比"
>
{isMasked ? (
<span style={{ fontSize: metricSize }}>******</span>
<span className="mask-text" style={{ fontSize: metricSize }}>
******
</span>
) : (
<>
<span style={{ marginRight: 1 }}>