A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
feat: improve subtitle and font table legibility
aminnausinbd316bfc4275
diff --git a/resources/js/components/cards/data/attachments/FontCard.vue b/resources/js/components/cards/data/attachments/FontCard.vueindex a2bafcbb..76aee65a 100644--- a/resources/js/components/cards/data/attachments/FontCard.vue+++ b/resources/js/components/cards/data/attachments/FontCard.vue@@ -9,7 +9,7 @@ import TablerDownload from '@/components/icons/TablerDownload.vue';defineProps<{ data: FontInfoResource }>();</script><template>- <div class="data-card bg-surface-2 text-foreground-2 w-full space-y-2 rounded-lg p-3 shadow-sm" v-if="data">+ <div class="data-card bg-surface-2 text-foreground-2 w-full space-y-2 rounded-lg p-3 shadow-sm dark:bg-white/5" v-if="data"><div class="flex items-center justify-between"><p class="text-foreground-0 truncate">{{ data.file_name }}</p><ButtonCornerdiff --git a/resources/js/components/cards/data/attachments/SubtitleCard.vue b/resources/js/components/cards/data/attachments/SubtitleCard.vueindex 11fe4dc2..ec797396 100644--- a/resources/js/components/cards/data/attachments/SubtitleCard.vue+++ b/resources/js/components/cards/data/attachments/SubtitleCard.vue@@ -22,7 +22,7 @@ const parseSubtitleFormat = (format?: string) => {};</script><template>- <div class="data-card bg-surface-2 text-foreground-2 w-full space-y-2 rounded-lg p-3 shadow-sm">+ <div class="data-card bg-surface-2 text-foreground-2 w-full space-y-2 rounded-lg p-3 shadow-sm dark:bg-white/5"><div class="flex items-center justify-between gap-2"><p class="text-foreground-0 truncate"><span class="text-foreground-2 font-normal">{{ track.track_id }}.</span>diff --git a/resources/js/components/cedar-ui/table/TableBase.vue b/resources/js/components/cedar-ui/table/TableBase.vueindex 08beb269..500390b2 100644--- a/resources/js/components/cedar-ui/table/TableBase.vue+++ b/resources/js/components/cedar-ui/table/TableBase.vue@@ -96,7 +96,11 @@ onMounted(() => {<section class="flex w-full flex-col gap-3"><sectionv-if="props.useToolbar"- :class="['flex flex-col flex-wrap justify-center gap-2', { 'sm:flex-row sm:justify-between': !forceVerticalToolbar }, sticky && cn('sticky top-10 z-1', stickyClass)]"+ :class="[+ 'table-toolbar flex flex-col flex-wrap justify-center gap-2',+ { 'sm:flex-row sm:justify-between': !forceVerticalToolbar },+ sticky && cn('sticky top-10 z-1', stickyClass),+ ]"><div class="relative"><TextInput@@ -128,17 +132,17 @@ onMounted(() => {><div :class="['flex w-full flex-1 flex-col gap-2']"><InputSelect+ title="Sort by...":name="'sort'"- :placeholder="'Sort by...'":prefix="'By '":options="sortingOptions"+ :disabled="loading"+ :placeholder="'Sort by...'"+ :load-default-on-disabled="true":defaultItem="0":class="cn('h-(--table-input-height) w-full')"- title="Sort by..."- @selectItem="handleSortChange":menu-margin="{ bottom: 'mb-10', top: 'mt-10' }"- :disabled="loading"- :load-default-on-disabled="true"+ @selectItem="handleSortChange"/></div><ButtonIcondiff --git a/resources/js/components/cedar-ui/table/TablePagination.vue b/resources/js/components/cedar-ui/table/TablePagination.vueindex 4eac49ff..43fc0c86 100644--- a/resources/js/components/cedar-ui/table/TablePagination.vue+++ b/resources/js/components/cedar-ui/table/TablePagination.vue@@ -50,7 +50,7 @@ const handleSetPage = async (page: number) => {</script><template>- <div class="@container flex max-w-full scroll-mb-12 flex-col flex-wrap items-center gap-2 text-sm sm:flex-row sm:justify-between" ref="$element">+ <div class="table-pagination @container flex max-w-full scroll-mb-12 flex-col flex-wrap items-center gap-2 text-sm sm:flex-row sm:justify-between" ref="$element"><p class="dark:text-foreground-7 text-nowrap">Showing<span class="dark:text-foreground-0 font-medium">{{ props.listLength ? props.itemsPerPage * (currentPage - 1) + 1 : 0 }}</span>diff --git a/resources/js/components/media/FontsInfo.vue b/resources/js/components/media/FontsInfo.vueindex 6f49c451..5730535a 100644--- a/resources/js/components/media/FontsInfo.vue+++ b/resources/js/components/media/FontsInfo.vue@@ -42,11 +42,11 @@ const filteredFonts = computed<FontInfoResource[]>(() => {</script><template>- <div class="flex flex-col gap-2 text-sm">+ <div class="@container flex flex-col gap-2 text-sm"><TableBaseref="fontTable"- :class="'w-full flex-1'"- :pagination-class="'sm:justify-around! xl:justify-between!'"+ :class="'modal-table w-full flex-1'"+ :pagination-class="'@sm:justify-around! @md:justify-between!'":table-styles="'w-full'":data="filteredFonts":row="FontCard"@@ -58,6 +58,14 @@ const filteredFonts = computed<FontInfoResource[]>(() => {v-model="search"/>- <p v-if="!filteredFonts.length" class="text-foreground-2 py-4 text-center text-xs tracking-wider uppercase">No fonts match "{{ search }}"</p>+ <p v-if="!filteredFonts.length" class="text-foreground-2 py-4 text-center text-xs tracking-wider uppercase dark:bg-white/5">No fonts match "{{ search }}"</p></div></template>++<style lang="css">+.modal-table .table-pagination button,+.modal-table .table-toolbar button,+.modal-table .table-toolbar input {+ background-color: color-mix(in oklab, var(--color-white) /* #fff = #ffffff */ 5%, transparent) !important;+}+</style>