Skip to content

Commit 3838f68

Browse files
wangdan-fit2cloudliuruibin
authored andcommitted
perf: Optimize the display of the header username
1 parent c78e0f1 commit 3838f68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/layout/layout-header/avatar/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</el-avatar>
2020
</div>
2121
<div style="width: 90%">
22-
<p class="bold mb-4" style="font-size: 14px">{{ user.userInfo?.nick_name }}({{ user.userInfo?.username }})</p>
22+
<p class="bold mb-4" style="font-size: 14px">{{ user.userInfo?.nick_name }} <span class="color-secondary lighter">({{ user.userInfo?.username }})</span></p>
2323
<template v-if="user.userInfo?.role_name && user.userInfo.role_name.length > 0">
2424
<TagGroup
2525
size="small"
@@ -222,6 +222,7 @@ onMounted(() => {
222222
<style lang="scss" scoped>
223223
.avatar-dropdown {
224224
min-width: 210px;
225+
max-width: 400px;
225226
226227
.userInfo {
227228
padding: 12px 11px;

0 commit comments

Comments
 (0)