保留当前账号标题并维持账号区域三段布局
Some checks are pending
Security Checks / security (push) Waiting to run

This commit is contained in:
smail 2026-09-18 17:42:46 +08:00
parent 4382376914
commit 347eec504e
2 changed files with 8 additions and 0 deletions

View File

@ -114,6 +114,13 @@
padding: 0 4px 12px;
}
.account-caption {
grid-column: 1 / -1;
color: var(--pm-text-secondary);
font-size: 11px;
line-height: 1.4;
}
.account-name {
overflow: hidden;
color: var(--pm-text-primary);

View File

@ -31,6 +31,7 @@
</div>
<div class="sidebar-footer" v-if="isLogin">
<div class="account-identity" aria-label="当前登录账号" aria-live="polite">
<span class="account-caption">当前账号</span>
<strong class="account-name" :title="currentAccount">{{ currentAccount }}</strong>
<el-tag :type="currentRole.type" size="small" effect="light" class="account-role">
{{ currentRole.label }}