feat:更新图标位置调整

This commit is contained in:
hzm
2026-02-27 22:30:49 +08:00
parent c3157439c3
commit 1c2195dd64
3 changed files with 17 additions and 9 deletions

View File

@@ -3944,17 +3944,20 @@ export default function HomePage() {
)}
<div className="title-text">
<span
className={`name-text ${f.jzrq === todayStr ? 'updated' : ''}`}
title={f.jzrq === todayStr ? "今日净值已更新" : ""}
className="name-text"
>
{f.name}
</span>
<span className="muted code-text">
<span
className="muted code-text"
title={f.jzrq === todayStr ? "今日净值已更新" : ""}
>
{(() => {
const holding = holdings[f.code];
const profit = getHoldingProfit(f, holding);
return profit ? `¥${profit.amount.toFixed(2)}` : `#${f.code}`;
})()}
{f.jzrq === todayStr && <span className="updated-indicator"></span>}
</span>
</div>
</div>
@@ -4134,12 +4137,15 @@ export default function HomePage() {
)}
<div className="title-text">
<span
className={`name-text ${f.jzrq === todayStr ? 'updated' : ''}`}
className={`name-text`}
title={f.jzrq === todayStr ? "今日净值已更新" : ""}
>
{f.name}
</span>
<span className="muted">#{f.code}</span>
<span className="muted">
#{f.code}
{f.jzrq === todayStr && <span className="updated-indicator"></span>}
</span>
</div>
</div>