Skip to content

A self-hosted media server and file management system

feat: player overlay panel layout

aminnausin05d82cbc55a7
diff --git a/resources/js/components/video/PlayerStats.vue b/resources/js/components/video/PlayerStats.vue
index f59312c0..1f55dd6a 100644
--- a/resources/js/components/video/PlayerStats.vue
+++ b/resources/js/components/video/PlayerStats.vue
@@ -27,7 +27,7 @@ const getPlayerDimensions = (player: HTMLVideoElement) => {
</script>
<template>
<div v-show="isShowingStats" class="pointer-events-auto w-fit rounded-md border border-neutral-700/10 bg-neutral-800/90 p-2 backdrop-blur-xs sm:min-w-52">
- <div class="scrollbar-minimal scrollbar-dark xs:h-16 flex h-12 max-h-64 w-full gap-2 overflow-y-auto pe-1 sm:h-auto sm:pe-0">
+ <div class="scrollbar-minimal scrollbar-dark xs:h-16 flex h-14 max-h-64 w-full gap-2 overflow-y-auto pe-1 sm:h-auto sm:pe-0">
<div class="space-y-2">
<section class="*:ms-4">
<h5 class="ms-0!">Player Info</h5>
diff --git a/resources/js/components/video/audio/AudioSpectrographPanel.vue b/resources/js/components/video/audio/AudioSpectrographPanel.vue
index 04ecf0de..68b14dfc 100644
--- a/resources/js/components/video/audio/AudioSpectrographPanel.vue
+++ b/resources/js/components/video/audio/AudioSpectrographPanel.vue
@@ -8,7 +8,6 @@ import ProiconsArrowSwap from '~icons/proicons/arrow-swap';
import ProiconsCancel from '~icons/proicons/cancel';
const props = defineProps<{
- isMaximised: boolean;
closePanel: () => void;
toggleScale: () => void;
}>();
@@ -22,7 +21,7 @@ const scale = ref<'log' | 'linear'>('linear');
</script>
<template>
- <div :class="['pointer-events-auto w-fit rounded-md border border-neutral-700/10 bg-neutral-800/90 p-2 backdrop-blur-xs sm:min-w-52', { 'top-6 p-4': isMaximised }]">
+ <div :class="['pointer-events-auto w-full rounded-md border border-neutral-700/10 bg-neutral-800/90 p-2 backdrop-blur-xs sm:w-fit sm:min-w-52']">
<div
class="scrollbar-minimal scrollbar-dark xs:h-16 flex max-h-12 w-full flex-col gap-1 overflow-y-auto pe-1 pb-1 *:ms-4 sm:h-auto sm:max-h-64 sm:overflow-visible! sm:pe-0"
>