| src/layout/components/Navbar.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/layout/components/Navbar.vue
@@ -301,6 +301,7 @@ height: 100%; display: flex; align-items: center; flex-shrink: 0; } .avatar-container :deep(.el-dropdown) { @@ -325,6 +326,7 @@ flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; } .user-name { @@ -339,6 +341,16 @@ line-height: 1; } // 昵称/角色始终单行,过长时省略,不换行撑高导航栏 .user-name, .user-role { white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; text-align: right; } .user-avatar { cursor: pointer; width: 36px;