feat: 添加用户头像和名称显示功能到顶部栏

This commit is contained in:
2025-12-25 09:26:21 +08:00
parent 2a3e951acb
commit 48db4a045c
2 changed files with 23 additions and 3 deletions

View File

@@ -69,6 +69,27 @@
background-color: var(--primary-color);
color: var(--primary-contrast-color);
}
&.layout-topbar-user {
width: auto;
height: auto;
border-radius: var(--content-border-radius);
padding: 0.25rem 0.75rem;
justify-content: flex-start;
gap: 0.5rem;
span {
display: inline;
max-width: 12rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.p-avatar {
flex: 0 0 auto;
}
}
}
.layout-menu-button {