A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: sidebar card sizing and wrapping
aminnausin84dda4d9c37d
diff --git a/resources/js/components/cards/data/AppManifestCard.vue b/resources/js/components/cards/data/AppManifestCard.vueindex 2e6da08b..89709092 100644--- a/resources/js/components/cards/data/AppManifestCard.vue+++ b/resources/js/components/cards/data/AppManifestCard.vue@@ -12,12 +12,12 @@ const { appManifest } = storeToRefs(useAppStore());<template><DashboardSidebarCard target="_blank" :href="`${appManifest?.commit ? `https://github.com/aminnausin/mediaServer/commit/${appManifest.commit}` : ''}`" :disabled="false"><template #header>- <h3 :title="'Source Code'">MediaServer</h3>- <ProiconsGithub class="ml-auto h-6 w-6" />+ <h3 :title="'Source Code'" class="truncate">MediaServer</h3>+ <ProiconsGithub class="ml-auto size-5 shrink-0" /></template><template #body>- <h4 title="App Version" class="w-full flex-1 truncate text-wrap sm:text-nowrap">V{{ appManifest.version ?? '0.1.15b' }}</h4>- <h4 v-if="appManifest.commit" title="Latest Commit" class="w-fit truncate text-nowrap sm:text-right">#{{ appManifest.commit }}</h4>+ <h4 title="App Version" class="w-full flex-1 text-nowrap sm:truncate">V{{ appManifest.version ?? '0.1.15b' }}</h4>+ <h4 v-if="appManifest.commit" title="Latest Commit" class="w-fit truncate text-nowrap">#{{ appManifest.commit }}</h4></template></DashboardSidebarCard></template>diff --git a/resources/js/components/cards/sidebar/SidebarCard.vue b/resources/js/components/cards/sidebar/SidebarCard.vueindex 8e9736ba..914afae1 100644--- a/resources/js/components/cards/sidebar/SidebarCard.vue+++ b/resources/js/components/cards/sidebar/SidebarCard.vue@@ -33,7 +33,7 @@ const isCompleteElement = computed(() => !!slots.header && !!slots.body);:is="wrapper":class="cn(- 'relative flex flex-col flex-wrap sm:flex-row',+ 'relative flex shrink-0 flex-col flex-wrap sm:flex-row','group w-full cursor-pointer rounded-lg p-3 shadow-sm','data-card','transition-input hover:ring-primary-muted hover:dark:ring-primary/60 ring-1 ring-transparent ease-in-out ring-inset hover:ring-2',@@ -50,7 +50,7 @@ const isCompleteElement = computed(() => !!slots.header && !!slots.body);<section class="flex w-full items-center justify-between gap-4"><slot name="header"> </slot></section>- <section class="text-foreground-1 flex w-full flex-col flex-wrap gap-2 text-sm sm:flex-row sm:justify-between">+ <section class="text-foreground-1 flex w-full flex-wrap justify-between gap-2 text-sm"><slot name="body"> </slot></section></slot>