Skip to content

Commit 080ccae

Browse files
authored
perf: 优化页签风格为谷歌模式下的布局和样式 (#1245)
1 parent c22cafa commit 080ccae

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/layout/components/lay-tag/index.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,9 @@
321321

322322
.chrome-tab-divider {
323323
position: absolute;
324-
right: 7px;
324+
left: 7px;
325325
width: 1px;
326326
height: 14px;
327-
background-color: #2b2d2f;
328327
}
329328

330329
&:hover {

src/layout/components/lay-tag/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,10 @@ onBeforeUnmount(() => {
618618
/>
619619
</template>
620620
<div v-else class="chrome-tab">
621+
<span
622+
v-if="index !== 0 && index !== activeIndex"
623+
class="chrome-tab-divider bg-[#e2e2e2] dark:bg-[#2d2d2d]"
624+
/>
621625
<div class="chrome-tab__bg">
622626
<TagChrome />
623627
</div>
@@ -631,7 +635,6 @@ onBeforeUnmount(() => {
631635
>
632636
<IconifyIconOffline :icon="Close" />
633637
</span>
634-
<span class="chrome-tab-divider" />
635638
</div>
636639
</div>
637640
</div>

0 commit comments

Comments
 (0)