Skip to content

A self-hosted media server and file management system

accessibility

aminnausinf2912707e40f
diff --git a/resources/js/components/cards/VideoCard.vue b/resources/js/components/cards/VideoCard.vue
index eb9d054c..7e283908 100755
--- a/resources/js/components/cards/VideoCard.vue
+++ b/resources/js/components/cards/VideoCard.vue
@@ -31,22 +31,22 @@ watch(props, handlePropsUpdate, { immediate: true });
>
<section class="flex justify-between gap-4 w-full items-start overflow-hidden" :title="metaData?.fields?.description">
<h3 class="w-full line-clamp-1 flex gap-8 items-end min-w-fit max-w-[30%]">
- <span>{{ metaData?.fields?.title }}</span>
+ {{ metaData?.fields?.title }}
<!-- <span class="text-ellipsis text-wrap line-clamp-1 text-sm sm:text-base text-neutral-500 dark:text-neutral-400">{{
metaData?.fields?.description
}}</span> -->
</h3>
- <h3 class="text-ellipsis text-wrap line-clamp-1 text-neutral-500 dark:text-neutral-400">
+ <h4 class="text-ellipsis text-wrap line-clamp-1 text-neutral-500 dark:text-neutral-400">
{{ metaData?.fields?.duration }}
- </h3>
+ </h4>
</section>
<section
class="flex justify-between gap-4 w-full items-start text-sm sm:text-base sm:w-auto text-neutral-500 dark:text-neutral-400 overflow-hidden"
>
<span class="flex gap-2 items-center w-full flex-1">
- <h3 class="text-sm sm:text-base text-nowrap text-start">
+ <h4 class="text-sm sm:text-base text-nowrap text-start">
{{ metaData?.fields?.views }}
- </h3>
+ </h4>
<span class="hidden sm:flex flex-wrap gap-1 max-h-5 h-full sm:max-h-[24px] overflow-x-hidden px-2 flex-1">
<ChipTag
@@ -58,9 +58,9 @@ watch(props, handlePropsUpdate, { immediate: true });
</span>
</span>
- <h3 class="text-end truncate">
+ <h4 class="text-end truncate">
{{ toFormattedDate(new Date(props.data?.date + ' GMT')) }}
- </h3>
+ </h4>
</section>
<div
v-if="metaData?.fields?.description?.length > 0"
diff --git a/resources/js/components/video/VideoInfoPanel.vue b/resources/js/components/video/VideoInfoPanel.vue
index e930658c..7af59379 100755
--- a/resources/js/components/video/VideoInfoPanel.vue
+++ b/resources/js/components/video/VideoInfoPanel.vue
@@ -69,9 +69,9 @@ watch(() => stateVideo.value, handlePropsUpdate, { immediate: true, deep: true }
class="flex flex-col sm:flex-row gap-2 sm:gap-4 p-4 overflow-clip w-full rounded-xl shadow-lg dark:bg-primary-dark-800/70 bg-primary-800"
>
<div id="mp4-header-mobile" class="flex items-center justify-between w-full sm:hidden gap-2 flex-wrap">
- <div class="text-xl font-medium line-clamp-1 capitalize">
+ <h2 class="text-xl font-medium line-clamp-1 capitalize">
{{ metaData?.fields.title ?? '[Video Name]' }}
- </div>
+ </h2>
<span class="flex gap-1 flex-row flex-wrap h-[22px] overflow-hidden">
<ChipTag v-for="(tag, index) in stateVideo?.video_tags" v-bind:key="index" :label="tag.name" />
</span>
@@ -104,9 +104,9 @@ watch(() => stateVideo.value, handlePropsUpdate, { immediate: true, deep: true }
</ButtonIcon>
</div>
<div class="flex flex-col gap-2 w-full">
- <div id="mp4-title" class="text-xl font-medium line-clamp-1 capitalize hidden sm:block h-8">
+ <h2 id="mp4-title" class="text-xl font-medium line-clamp-1 capitalize hidden sm:block h-8">
{{ metaData?.fields.title ?? '[Video Name]' }}
- </div>
+ </h2>
<p class="dark:text-slate-400 text-slate-500 line-clamp-2 text-sm">
{{ metaData?.fields?.description ?? defaultDescription }}
</p>