From 8e6f2de94b35ad9ed2d592427aa8c1ba5b2e8463 Mon Sep 17 00:00:00 2001 From: xingyu Date: Mon, 11 Sep 2023 13:55:36 +0800 Subject: [PATCH] style: header style --- .../header/components/user-dropdown/index.vue | 13 +++++-------- src/layouts/default/header/index.less | 5 +---- src/layouts/default/header/index.vue | 17 ++++++++--------- 3 files changed, 14 insertions(+), 21 deletions(-) diff --git a/src/layouts/default/header/components/user-dropdown/index.vue b/src/layouts/default/header/components/user-dropdown/index.vue index 79dbcda3..b8b70351 100644 --- a/src/layouts/default/header/components/user-dropdown/index.vue +++ b/src/layouts/default/header/components/user-dropdown/index.vue @@ -94,15 +94,11 @@ function handleMenuClick(e: MenuInfo) { @@ -124,6 +120,7 @@ function handleMenuClick(e: MenuInfo) { &__avatar { margin-right: 5px; + border-radius: 50%; } &__name { diff --git a/src/layouts/default/header/index.less b/src/layouts/default/header/index.less index 9dd9a1ac..ecb0fc64 100644 --- a/src/layouts/default/header/index.less +++ b/src/layouts/default/header/index.less @@ -55,7 +55,6 @@ &-logo { min-width: 192px; height: @header-height; - padding: 0 10px; font-size: 14px; img { @@ -116,7 +115,7 @@ display: flex !important; align-items: center; height: @header-height; - padding: 0 2px; + padding: 0 8px; font-size: 1.2em; cursor: pointer; @@ -146,7 +145,6 @@ .@{header-prefix-cls}-action { &__item { .app-iconify { - padding: 0 10px; font-size: 16px !important; } @@ -170,7 +168,6 @@ .@{header-prefix-cls}-action { &__item { .app-iconify { - padding: 0 10px; font-size: 16px !important; } diff --git a/src/layouts/default/header/index.vue b/src/layouts/default/header/index.vue index ed697aa5..0816e850 100644 --- a/src/layouts/default/header/index.vue +++ b/src/layouts/default/header/index.vue @@ -87,12 +87,10 @@ const getMenuMode = computed(() => {
- - + +
@@ -105,7 +103,7 @@ const getMenuMode = computed(() => {
- + @@ -113,9 +111,10 @@ const getMenuMode = computed(() => { - + - +