A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: file size not visible in video info panel
aminnausin624a6aab7639
diff --git a/resources/js/components/video/VideoInfoPanel.vue b/resources/js/components/video/VideoInfoPanel.vueindex 825d86c9..10d8b1a0 100755--- a/resources/js/components/video/VideoInfoPanel.vue+++ b/resources/js/components/video/VideoInfoPanel.vue@@ -1,6 +1,6 @@<script setup lang="ts">+import { handleStorageURL, toFormattedDate, toTimeSpan, formatFileSize } from '@/service/util';import { computed, onMounted, ref, useTemplateRef, watch, nextTick } from 'vue';-import { handleStorageURL, toFormattedDate, toTimeSpan } from '@/service/util';import { ButtonIcon, ButtonText } from '@/components/cedar-ui/button';import { getUserViewCount } from '@/service/mediaAPI';import { ContextMenuItem } from '@/components/cedar-ui/context-menu';@@ -301,12 +301,17 @@ onMounted(() => {<template v-if="stateVideo?.metadata?.resolution_height"><p>|</p>- <HoverCard :content="`Codec: ${stateVideo.metadata.codec ?? 'Unknown'}`">+ <HoverCard><template #trigger><p class="xs:block hidden truncate text-start text-nowrap transition-all hover:text-neutral-400 dark:hover:text-white">{{ `${stateVideo.metadata.resolution_height}p` }}</p></template>+ <template #content>+ <p class="text-foreground-1">Resolution: {{ `${stateVideo.metadata.resolution_width}x${stateVideo.metadata.resolution_height}` }}</p>+ <p class="text-foreground-1" v-if="stateVideo.file_size">Size: {{ formatFileSize(stateVideo.file_size) }}</p>+ <p class="text-foreground-1">Codec: {{ stateVideo.metadata.codec ?? 'Unknown' }}</p>+ </template></HoverCard></template><template v-if="stateVideo.date_uploaded">