docs: improve search button on mobile

This commit is contained in:
Benjamin Canac
2023-09-07 16:16:14 +02:00
parent c47d928f49
commit b905216a95

View File

@@ -13,13 +13,13 @@
</template>
<template v-if="$route.path !== '/'" #center>
<UDocsSearchButton class="ml-1.5 flg:w-64 xl:w-96" />
<UDocsSearchButton class="ml-1.5 hidden lg:flex lg:w-64 xl:w-96" />
</template>
<template #right>
<ColorPicker />
<UDocsSearchButton v-if="$route.path === '/'" icon-only />
<UDocsSearchButton :class="[$route.path !== '/' && 'lg:hidden']" icon-only />
<UColorModeButton v-if="!$colorMode.forced" />