将账号角色和注销排列为同一行三段
This commit is contained in:
1 parent
0b87eab821
commit
cec73a4da5
2 files changed
+7
-15
No files matched your search
@@ -108,19 +108,12 @@
|
|||||||
|
|
||||||
.account-identity {
|
.account-identity {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 1fr) auto;
|
grid-template-columns: minmax(0, 1fr) auto auto;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px 8px;
|
gap: 4px 8px;
|
||||||
padding: 0 4px 12px;
|
padding: 0 4px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.account-caption {
|
|
||||||
grid-column: 1;
|
|
||||||
color: var(--pm-text-secondary);
|
|
||||||
font-size: 11px;
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
|
|
||||||
.account-name {
|
.account-name {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
color: var(--pm-text-primary);
|
color: var(--pm-text-primary);
|
||||||
@@ -143,9 +136,9 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
justify-self: end;
|
justify-self: end;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
min-width: 76px;
|
min-width: 62px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
padding: 0 6px;
|
padding: 0 4px;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|||||||
@@ -31,7 +31,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="sidebar-footer" v-if="isLogin">
|
<div class="sidebar-footer" v-if="isLogin">
|
||||||
<div class="account-identity" aria-label="当前登录账号" aria-live="polite">
|
<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 }}
|
||||||
|
</el-tag>
|
||||||
<el-tooltip :content="lang.logout" placement="top">
|
<el-tooltip :content="lang.logout" placement="top">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -45,10 +48,6 @@
|
|||||||
<span>{{ lang.logout }}</span>
|
<span>{{ lang.logout }}</span>
|
||||||
</button>
|
</button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<strong class="account-name" :title="currentAccount">{{ currentAccount }}</strong>
|
|
||||||
<el-tag :type="currentRole.type" size="small" effect="light" class="account-role">
|
|
||||||
{{ currentRole.label }}
|
|
||||||
</el-tag>
|
|
||||||
</div>
|
</div>
|
||||||
<button type="button" class="settings-btn" @click="openSettings">
|
<button type="button" class="settings-btn" @click="openSettings">
|
||||||
<el-icon><Setting /></el-icon>
|
<el-icon><Setting /></el-icon>
|
||||||
|
|||||||
Reference in new issue
Block a user