fix: 顶栏头像也显示真头像 (row29 续2)

上轮只改了侧栏/账户菜单/设置页,漏了顶栏右上角 .topbar-avatar(App.tsx 与 pipeline.tsx 各一处)。
改为有 avatar_url 显 <img> 否则首字;.topbar-avatar 已有 overflow:hidden + img 铺满规则,CSS 不动。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
zyc
2026-06-30 11:16:38 +08:00
co-authored by Claude Opus 4.8
parent 38881c3041
commit 8f8bf3283a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2473,7 +2473,7 @@ export function PipelinePage(props: {
{unreadCount > 0 && <span className="count-noti">{unreadCount}</span>}
</button>
<div className="topbar-avatar" onDoubleClick={logout} title="账户(双击退出)">
<span>{avatarChar}</span>
{user.avatar_url ? <img src={user.avatar_url} alt="头像" /> : <span>{avatarChar}</span>}
</div>
</div>
<div className="stage-pill" id="stage-pill">