A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: drawer style does not match other drawers on mobile apps
aminnausin58a8ad83de47
diff --git a/resources/js/components/cedar-ui/drawer/BaseDrawer.vue b/resources/js/components/cedar-ui/drawer/BaseDrawer.vueindex b4d20fff..d28a513c 100644--- a/resources/js/components/cedar-ui/drawer/BaseDrawer.vue+++ b/resources/js/components/cedar-ui/drawer/BaseDrawer.vue@@ -45,17 +45,15 @@ function isDrawerCloseTarget(e: PointerEvent): boolean {}"id="drawer">- <div class="flex flex-col items-center justify-center gap-3 p-4 md:p-3">- <div class="group flex w-full cursor-pointer pb-1 sm:p-0">- <slot name="handle">- <DrawerHandle- data-drawer-close- :aria-expanded="drawer.isOpen.value"- @keydown.enter.prevent="drawer.close('escape')"- @keydown.space.prevent="drawer.close('escape')"- />- </slot>- </div>+ <div class="xms:px-4 flex flex-col items-center justify-center gap-3 p-3 md:px-6">+ <slot name="handle">+ <DrawerHandle+ data-drawer-close+ :aria-expanded="drawer.isOpen.value"+ @keydown.enter.prevent="drawer.close('escape')"+ @keydown.space.prevent="drawer.close('escape')"+ />+ </slot><div class="flex w-full flex-col gap-1.5" v-if="props.showHeader"><slot name="header"><h2 id="drawerTitle" class="text-foreground flex-1 text-xl font-semibold">diff --git a/resources/js/components/cedar-ui/drawer/DrawerHandle.vue b/resources/js/components/cedar-ui/drawer/DrawerHandle.vueindex 22b49935..baebef3e 100644--- a/resources/js/components/cedar-ui/drawer/DrawerHandle.vue+++ b/resources/js/components/cedar-ui/drawer/DrawerHandle.vue@@ -2,7 +2,7 @@<buttontype="button"title="Close Drawer"- class="bg-foreground-2 group-hover:bg-foreground-3 mx-auto h-1.5 w-24 cursor-pointer rounded-full transition-colors focus:outline-0 sm:w-32 md:max-w-1/12"+ class="bg-foreground-2 group-hover:bg-foreground-3 mx-auto mt-1 h-1 w-16 cursor-pointer rounded-full transition-colors focus:outline-0 md:w-32 md:max-w-1/12"aria-controls="drawer"></button></template>diff --git a/resources/js/components/cedar-ui/drawer/RootDrawer.vue b/resources/js/components/cedar-ui/drawer/RootDrawer.vueindex 78264e93..a43619dd 100644--- a/resources/js/components/cedar-ui/drawer/RootDrawer.vue+++ b/resources/js/components/cedar-ui/drawer/RootDrawer.vue@@ -2,7 +2,7 @@import { cn } from '@aminnausin/cedar-ui';</script><template>- <div :class="cn('bg-surface-1 drawer-shell relative w-screen rounded-t-xl backdrop-blur-lg sm:rounded-t-lg')">+ <div :class="cn('bg-surface-1 drawer-shell relative w-screen rounded-t-3xl sm:rounded-t-lg')"><slot></slot></div></template>