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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user