From 684425d315fb06d2826f219655c1c488ed978742 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Fri, 3 Apr 2026 21:41:02 +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 | 5 +- src/layout/components/TagsView/index.vue | 53 ++++++++++++------- 3 files changed, 40 insertions(+), 23 deletions(-) diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue index db3c2b5..e89336d 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 b30f04f..815d8ab 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 }} - - + + @@ -389,7 +389,7 @@ function handleScroll(): void { $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; @@ -421,7 +421,8 @@ function handleScroll(): void { height: 100%; .tags-view-item { - display: inline-block; + display: inline-flex; + align-items: center; position: relative; cursor: pointer; height: 26px; @@ -433,6 +434,9 @@ function handleScroll(): void { 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; } @@ -519,26 +523,33 @@ function handleScroll(): void {