Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks [CI SKIP]
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and pat-s committed Dec 28, 2024
1 parent 0ba19bd commit 9595c4e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions web/src/components/layout/scaffold/Tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
<router-link
v-for="tab in tabs"
:key="tab.title"
v-slot="{ isActive, isExactActive }: { isActive: boolean; isExactActive: boolean }"
:to="tab.to"
class="flex items-center !border-wp-text-100 py-1 border-transparent w-full md:w-auto text-wp-text-100 cursor-pointer"
class="flex items-center py-1 border-transparent md:border-b-2 w-full md:w-auto text-wp-text-100 cursor-pointer"
:active-class="tab.matchChildren ? '!border-wp-text-100' : ''"
:exact-active-class="tab.matchChildren ? '' : '!border-wp-text-100 md:border-b-2 underline'"
:exact-active-class="tab.matchChildren ? '' : '!border-wp-text-100 underline md:no-underline'"
:class="{
'!border-wp-text-100 underline md:no-underline': tab.matchChildren ? isActive : isExactActive,
}"
>
<span
class="flex flex-row md:justify-center items-center gap-2 dark:hover:bg-wp-background-100 hover:bg-wp-background-200 py-1 rounded-md w-full min-w-20"
Expand All @@ -26,4 +30,3 @@ import { useTabsClient } from '~/compositions/useTabs';
const { tabs } = useTabsClient();
</script>

0 comments on commit 9595c4e

Please sign in to comment.