style(find-tabs): adjust spacing and label styles
Add a spacer div after the last tab to add consistent right padding, remove redundant px-1 padding from tab labels, and clean up excess whitespace in class attributes.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<div class="w-full bg-transparent">
|
||||
<div class="w-full bg-transparent ">
|
||||
<div ref="tabsScrollRef"
|
||||
class="tabs-scroll w-full overflow-x-auto scrollbar-none [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden">
|
||||
class="tabs-scroll w-full overflow-x-auto scrollbar-none [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden">
|
||||
<div class="flex items-end h-[50px] gap-4 flex-nowrap px-3">
|
||||
<div v-for="(tab, idx) in tabs" :key="idx" :id="getTabId(idx)"
|
||||
class="relative inline-flex items-center justify-center h-[50px] shrink-0" @click="handleSwitch(tab, idx)">
|
||||
<div class="relative flex items-center justify-center h-[50px]">
|
||||
<div class="relative inline-flex items-center justify-center">
|
||||
<span
|
||||
:class="['relative text-base z-10 px-1 leading-none', modelValue === idx ? 'text-[#0b0b0b] font-bold' : 'font-medium text-[#808c99]/90']">
|
||||
:class="['relative text-base z-10 leading-none', modelValue === idx ? 'text-[#0b0b0b] font-bold' : 'font-medium text-[#808c99]/90']">
|
||||
{{ tab.label }}
|
||||
</span>
|
||||
<img v-if="modelValue === idx && (isZhiNian ? indicatorSrcB : indicatorSrc)"
|
||||
@@ -17,6 +17,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-px h-[50px] shrink-0"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user