Skip to content

A self-hosted media server and file management system

fix: content visibility should not automatically apply to all data-card

aminnausinbfec74b9e2fa
diff --git a/resources/css/theme.css b/resources/css/theme.css
index a5fd60f9..e865d93a 100644
--- a/resources/css/theme.css
+++ b/resources/css/theme.css
@@ -246,8 +246,6 @@
.data-card {
@apply bg-surface-2 hover:bg-surface-3 dark:hover:bg-primary-dark-600 dark:bg-surface-2/70;
- content-visibility: auto;
- contain-intrinsic-size: auto 76px;
}
.content-auto {
diff --git a/resources/js/components/cards/data/LibraryCard.vue b/resources/js/components/cards/data/LibraryCard.vue
index 693e568f..4d5ccbf8 100644
--- a/resources/js/components/cards/data/LibraryCard.vue
+++ b/resources/js/components/cards/data/LibraryCard.vue
@@ -140,7 +140,7 @@ watch(
<div
:class="
cn(
- 'data-card group relative flex w-full flex-col rounded-xl shadow-lg ring-1 ring-gray-900/5 [contain-intrinsic-size:auto_260px] sm:[contain-intrinsic-size:auto_280px]',
+ 'data-card content-auto group relative flex w-full flex-col rounded-xl shadow-lg ring-1 ring-gray-900/5 [contain-intrinsic-size:auto_260px] sm:[contain-intrinsic-size:auto_280px]',
'transition-input hover:ring-primary-muted hover:dark:ring-primary ring-1 ease-in-out hover:ring-2',
)
"
diff --git a/resources/js/components/cards/data/LibraryFolderCard.vue b/resources/js/components/cards/data/LibraryFolderCard.vue
index e9872c93..d5090813 100644
--- a/resources/js/components/cards/data/LibraryFolderCard.vue
+++ b/resources/js/components/cards/data/LibraryFolderCard.vue
@@ -56,7 +56,7 @@ const handleToggleDownloads = async (id: number, currentValue: boolean) => {
<div
:class="
cn(
- 'data-card group relative flex w-full flex-col rounded-xl shadow-lg ring-1 ring-gray-900/5 [contain-intrinsic-size:auto_260px]',
+ 'data-card content-auto group relative flex w-full flex-col rounded-xl shadow-lg ring-1 ring-gray-900/5 [contain-intrinsic-size:auto_260px]',
'transition-input hover:ring-primary-muted hover:dark:ring-primary ring-1 ease-in-out hover:ring-2',
)
"
diff --git a/resources/js/components/cards/data/RecordCardDetails.vue b/resources/js/components/cards/data/RecordCardDetails.vue
index 6d5bddf6..fff8ca67 100644
--- a/resources/js/components/cards/data/RecordCardDetails.vue
+++ b/resources/js/components/cards/data/RecordCardDetails.vue
@@ -22,7 +22,7 @@ const videoLink = computed(() => {
</script>
<template>
- <div :class="['data-card content-visible', 'group flex w-full flex-col flex-wrap gap-4 rounded-xl p-3 text-left shadow-sm ring-1 ring-gray-900/5 sm:flex-row']">
+ <div :class="['data-card', 'group flex w-full flex-col flex-wrap gap-4 rounded-xl p-3 text-left shadow-sm ring-1 ring-gray-900/5 sm:flex-row']">
<header class="flex w-full items-center justify-between gap-4">
<component
:is="videoLink ? RouterLink : 'div'"
diff --git a/resources/js/components/cards/data/VideoCard.vue b/resources/js/components/cards/data/VideoCard.vue
index 3e643b19..6071c4eb 100644
--- a/resources/js/components/cards/data/VideoCard.vue
+++ b/resources/js/components/cards/data/VideoCard.vue
@@ -77,7 +77,7 @@ const dateInformation = computed(() => getMediaDateDescription(videoData));
:class="[
'dark:hover:bg-primary-active/70 dark:bg-primary-dark-800/70 dark:odd:bg-primary-dark-600 hover:bg-primary/5 bg-neutral-50 odd:bg-neutral-100',
'relative flex w-full flex-col gap-x-8 gap-y-4 rounded-md',
- 'data-card content-visible hover:data-card-hover overflow-clip p-3 shadow-sm focus-within:outline-none',
+ 'data-card hover:data-card-hover overflow-clip p-3 shadow-sm focus-within:outline-none',
]"
:to="encodeURI(`/${stateDirectory.name}/${stateFolder.name}?video=${videoData.id}${resumeOffset}`)"
@contextmenu="
diff --git a/resources/js/components/video/VideoInfoPanel.vue b/resources/js/components/video/VideoInfoPanel.vue
index 9ecac133..20cd6e20 100755
--- a/resources/js/components/video/VideoInfoPanel.vue
+++ b/resources/js/components/video/VideoInfoPanel.vue
@@ -275,7 +275,7 @@ onMounted(() => {
<div id="mp4-folder-info" class="xs:block aspect-2-3 relative hidden h-32 overflow-clip rounded-md shadow-md ring-1 ring-gray-900/5">
<LazyImage
id="folder-thumbnail"
- class="aspect-2-3 h-full object-cover"
+ class="aspect-2-3 content-auto xs:[contain-intrinsic-size:auto_128px] h-full object-cover"
alt="Folder Cover Art"
fetchpriority="high"
loading="eager"