mirror of
https://github.com/un-pany/v3-admin-vite.git
synced 2025-04-21 11:29:20 +08:00
perf: 优化 NavigationBar CSS
This commit is contained in:
parent
a3ec9e2ad2
commit
ea34a957f0
@ -86,10 +86,6 @@ function handleHistory() {
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.notify {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.notify-history {
|
||||
text-align: center;
|
||||
padding-top: 12px;
|
||||
|
@ -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>
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user