From bd6a6447057245e60ed92359c79ac37fdf7aa9a8 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Fri, 3 Apr 2026 21:40:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TopNav/index.vue | 5 ++ src/layout/components/TagsView/ScrollPane.vue | 6 +-- src/layout/components/TagsView/index.vue | 53 ++++++++++++------- 3 files changed, 40 insertions(+), 24 deletions(-) diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue index cf08420..de328a8 100644 --- a/src/components/TopNav/index.vue +++ b/src/components/TopNav/index.vue @@ -171,6 +171,11 @@ onMounted(() => { \ No newline at end of file diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index e82e8d4..093d22f 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -18,10 +18,10 @@ @click.middle="!isAffix(tag) ? closeSelectedTag(tag) : ''" @contextmenu.prevent="openMenu(tag, $event)" > - + {{ tag.title }} - - + + @@ -386,7 +386,7 @@ function handleScroll() { $divider: 1px solid var(--tags-item-border, #d8dce5); .tags-nav-btn { - flex-shrink: 0; + flex-shrink: 0; display: flex; align-items: center; justify-content: center; @@ -418,7 +418,8 @@ function handleScroll() { height: 100%; .tags-view-item { - display: inline-block; + display: inline-flex; + align-items: center; position: relative; cursor: pointer; height: 26px; @@ -430,6 +431,9 @@ function handleScroll() { font-size: 12px; margin-left: 5px; border-radius: 3px; + text-decoration: none; + vertical-align: middle; + padding-top: 2px !important; &:first-of-type { margin-left: 6px; } &:last-of-type { margin-right: 15px; } @@ -516,26 +520,33 @@ function handleScroll() {