Skip to content

A self-hosted media server and file management system

fix: video popover scrollbar should always be dark

aminnausin51f5296d99ad
diff --git a/resources/css/theme.css b/resources/css/theme.css
index 890730ca..3020891a 100644
--- a/resources/css/theme.css
+++ b/resources/css/theme.css
@@ -119,6 +119,13 @@
}
}
+ /* For video popover which is always dark */
+ .scrollbar-dark {
+ --color-scrollbar-track: rgb(38 38 38 / var(--tw-bg-opacity, 1)) !important;
+ --color-scrollbar-thumb: #9e9e9e !important;
+ --color-scrollbar-thumb-hover: #d0d0d0 !important;
+ }
+
.supports-scrollbars {
animation: detect-scroll linear;
animation-timeline: scroll(self);
diff --git a/resources/js/components/video/VideoPopover.vue b/resources/js/components/video/VideoPopover.vue
index 070e5b40..907df6e1 100644
--- a/resources/js/components/video/VideoPopover.vue
+++ b/resources/js/components/video/VideoPopover.vue
@@ -134,7 +134,7 @@ onUnmounted(() => {
:class="[
popoverClass,
`${popoverPosition === 'bottom' ? `top-8 ${verticalOffset ? `sm:top-${verticalOffset}` : 'sm:top-12'}` : `${verticalOffset ? `bottom-${verticalOffset}` : `bottom-12`}`}`, // This wont generate classes
- 'absolute right-2 z-10 w-[300px] max-w-lg overflow-clip',
+ 'scrollbar-dark absolute right-2 z-10 w-[300px] max-w-lg overflow-clip',
]"
ref="popover"
:options="{ allowOutsideClick: true }"