Skip to content

Commit

Permalink
修复 HTabList 组件文字不居中的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hooray committed Oct 31, 2023
1 parent 72373eb commit 89ed9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/ui-kit/HTabList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function handleChange(index: number) {
<TabList class="inline-flex items-center justify-center p-1 rounded-md bg-stone-1 dark:bg-stone-9 ring-1 ring-stone-2 dark:ring-stone-8 select-none">
<Tab v-for="(option, index) in options" :key="index" v-slot="{ selected }" as="template">
<button
class="inline-flex w-full px-2 py-1.5 border-size-0 text-sm rounded-md truncate text-dark dark:text-white bg-inherit focus:outline-none ring-inset ring-stone-2 dark:ring-stone-8 focus:ring-2" :class="{
class="inline-flex items-center justify-center w-full px-2 py-1.5 border-size-0 text-sm rounded-md truncate text-dark dark:text-white bg-inherit focus:outline-none ring-inset ring-stone-2 dark:ring-stone-8 focus:ring-2" :class="{
'cursor-default bg-white dark:bg-dark-9': selected,
'cursor-pointer opacity-50 transition hover:(opacity-100)': !selected,
}"
Expand Down

0 comments on commit 89ed9f6

Please sign in to comment.