Fixed hydration mismatches

This commit is contained in:
Alexis
2025-04-25 15:23:03 +02:00
parent f7f12feaec
commit 2d2069cae6
3 changed files with 39 additions and 29 deletions

View File

@@ -0,0 +1,26 @@
<script lang="ts" setup>
import { breakpointsTailwind, useBreakpoints } from "@vueuse/core"
import { PhMagnifyingGlass } from "@phosphor-icons/vue"
const { revealAdvancedSearch, } = useCalendar()
const breakpoints = useBreakpoints(
breakpointsTailwind
)
</script>
<template>
<ClientOnly>
<UiButton
:search-slash="breakpoints.lg.value"
:size="breakpoints.lg.value ? 'default' : 'icon'"
@click="revealAdvancedSearch()"
>
<PhMagnifyingGlass size="20" weight="light" />
<span class="max-lg:hidden">
{{ $t('entity.advancedSearch.title') }}
</span>
</UiButton>
</ClientOnly>
</template>