Skip to content

Commit

Permalink
perf: 优化 NavigationBar CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
pany-ang committed Dec 10, 2024
1 parent a3ec9e2 commit ea34a95
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
4 changes: 0 additions & 4 deletions src/common/components/Notify/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ function handleHistory() {
</template>

<style lang="scss" scoped>
.notify {
margin-right: 10px;
}
.notify-history {
text-align: center;
padding-top: 12px;
Expand Down
29 changes: 16 additions & 13 deletions src/layouts/components/NavigationBar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ function logout() {
<Screenfull v-if="showScreenfull" class="right-menu-item" />
<ThemeSwitch v-if="showThemeSwitch" class="right-menu-item" />
<Notify v-if="showNotify" class="right-menu-item" />
<el-dropdown class="right-menu-item">
<div class="right-menu-avatar">
<el-dropdown>
<div class="right-menu-item user">
<el-avatar :icon="UserFilled" :size="30" />
<span>{{ userStore.username }}</span>
</div>
Expand Down Expand Up @@ -110,18 +110,21 @@ function logout() {
height: 100%;
display: flex;
align-items: center;
.right-menu-item {
padding: 0 10px;
&-item {
margin: 0 10px;
cursor: pointer;
.right-menu-avatar {
display: flex;
align-items: center;
.el-avatar {
margin-right: 10px;
}
span {
font-size: 16px;
}
&:last-child {
margin-left: 20px;
}
}
.user {
display: flex;
align-items: center;
.el-avatar {
margin-right: 10px;
}
span {
font-size: 16px;
}
}
}
Expand Down

0 comments on commit ea34a95

Please sign in to comment.