A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
update sizing
aminnausin9e240ec45c8b
diff --git a/resources/js/components/VideoCard.vue b/resources/js/components/VideoCard.vueindex 4ac36b64..6bcf6c30 100644--- a/resources/js/components/VideoCard.vue+++ b/resources/js/components/VideoCard.vue@@ -14,12 +14,12 @@<template><tr :class="{ 'ring-violet-600/50 ring': (currentID === video.id)}" class="vid-row w-full rounded-md dark:bg-neutral-800 dark:hover:bg-indigo-900 bg-violet-100 hover:bg-violet-300 p-3 flex ring-inset" :data-id="video.id" :data-path="`../${video.attributes.path}`" @click="handlePlay"><td class="flex gap-12 w-full">- <span class="vid-row-title truncate">{{ video.attributes.name }}</span>+ <span class="vid-row-title truncate min-w-48">{{ video.attributes.name }}</span><span class="vid-row-duration truncate">20m 30s</span></td><td class="flex gap-12 w-full justify-end"><span class="vid-row-title">{{ currentID === video.id }} {{ index }}</span>- <span class="vid-row-date truncate overflow-hidden">{{ toFormattedDate(rawDate) }}</span>+ <span class="vid-row-date truncate overflow-hidden min-w-36">{{ toFormattedDate(rawDate) }}</span></td></tr></template>\ No newline at end of filediff --git a/resources/js/components/VideoTable.vue b/resources/js/components/VideoTable.vueindex 5c0a01ce..59cb2d8c 100644--- a/resources/js/components/VideoTable.vue+++ b/resources/js/components/VideoTable.vue@@ -11,24 +11,24 @@const { playlistFind } = ContentStore;const tableColumnGroups = [- [{name: 'Title', colspan: '2', minWidth: 'min-w-16'},- {name: 'Length', colspan: '1', minWidth: 'min-w-4'}],- [{name: 'Views', colspan: '1', minWidth: 'min-w-4'},- {name: 'Title', colspan: '2', minWidth: 'min-w-32'}],+ [{name: 'Title', colspan: '2', minWidth: 'min-w-48'},+ {name: 'Length', colspan: '1', minWidth: 'min-w-6'}],+ [{name: 'Views', colspan: '1', minWidth: 'min-w-6'},+ {name: 'Date', colspan: '2', minWidth: 'min-w-40'}],];</script><template><table class="w-full overflow-x-hidden flex flex-col gap-2">- <section class="folder-header2 flex justify-center sm:justify-start p-2">+ <section class="folder-header flex justify-center sm:justify-start p-2"><!-- <h2 class="text-2xl py-4">Episodes</h2> -->- <LabelledTextInput v-model="searchQuery" :text="'Search'"/>+ <LabelledTextInput v-model="searchQuery" :text="'Search'" class="w-80"/></section><hr><thead class="w-full flex">- <tr class="w-full flex justify-between gap-12">+ <tr class="w-full flex justify-between gap-12 text-left"><th class="px-3 flex gap-12 w-full items-center">- <span v-for="(column, idx) in tableColumnGroups[0]" :key="idx">{{ column.name }}</span>+ <span v-for="(column, idx) in tableColumnGroups[0]" :key="idx" :class="column.minWidth">{{ column.name }}</span></th><th class="px-3 flex gap-12 w-full justify-end items-center"><span v-for="(column, idx) in tableColumnGroups[1]" :key="idx" :class="column.minWidth">{{ column.name }}</span>diff --git a/resources/js/components/inputs/LabelledTextInput.vue b/resources/js/components/inputs/LabelledTextInput.vueindex a494e6e1..96cf90f1 100644--- a/resources/js/components/inputs/LabelledTextInput.vue+++ b/resources/js/components/inputs/LabelledTextInput.vue@@ -6,6 +6,6 @@ const { text } = defineProps(['text'])<div class="flex justify-start items-center gap-2"><label class="text-neutral-950 dark:text-white text-lg" :for="text">{{ text }}:</label><input type="text" v-model="model"- class="p-2 text-neutral-950 dark:text-white bg-input-100 border-input-200 shadow-sm leading-none dark:bg-input-800 dark:border-indigo-800 rounded-lg">+ class="p-2 text-neutral-950 dark:text-white bg-input-100 border-input-200 shadow-sm leading-none dark:bg-input-800 dark:border-indigo-800 rounded-lg w-full"></div></template>\ No newline at end of filediff --git a/resources/js/views/VideoView.vue b/resources/js/views/VideoView.vueindex 921f67e2..17b6f758 100644--- a/resources/js/views/VideoView.vue+++ b/resources/js/views/VideoView.vue@@ -66,7 +66,7 @@<button class="p-2 bg-button-100 dark:bg-button-900 rounded-lg ring-indigo-500 hover:ring-indigo-800 hover:bg-button-200 dark:hover:bg-indigo-400 hover:text-neutral-950 ring-[0.125rem] ring-inset">Edit Details</button><button class="p-2 bg-button-100 dark:bg-button-900 rounded-lg hover:ring-indigo-500 hover:ring-[0.125rem] ring-inset">s</button></section>- <section class="flex justify-end">+ <section class="hidden justify-end"><button type="button" class="bg-button-100 dark:bg-button-900 dark:text-white rounded-l-md border-r ring border-indigo-300 py-2 hover:bg-red-700 hover:text-white px-3 shadow-xl" @click="playlistSeek(-1)"><div class="flex flex-row align-middle"><svg class="w-5 mr-2" fill="currentColor" viewBox="0 0 20 20" xmlns="https://www.w3.org/2000/svg">