Skip to content

A self-hosted media server and file management system

chore: colour and styling consistency on player elements

aminnausin324aa1a6b533
diff --git a/resources/js/components/video/VideoPartyPanel.vue b/resources/js/components/video/VideoPartyPanel.vue
index 68494695..00dd49c3 100644
--- a/resources/js/components/video/VideoPartyPanel.vue
+++ b/resources/js/components/video/VideoPartyPanel.vue
@@ -44,23 +44,23 @@ const handleKickUser = (id: number) => {
<template>
<VideoPopover
v-if="userData?.id"
- popoverClass="!max-w-40 rounded-lg"
+ popoverClass="!max-w-40 rounded-lg right-4"
ref="popover-party"
:margin="80"
:player="player ?? undefined"
:force-popover-position="'bottom'"
- button-class="hover:bg-neutral-900/30 bg-neutral-900/10 p-1 rounded-full hover:scale-100 scale-90 transition-transform ease-in-out duration-500 flex gap-1 items-center justify-center"
+ button-class="hover:bg-neutral-900/60 bg-neutral-900/30 p-1 rounded-full hover:scale-100 scale-90 transition-transform ease-in-out duration-500 flex gap-1 items-center justify-center"
title="Watch Party"
>
<template #buttonIcon>
- <ProiconsEye class="w-4 h-4" />
+ <ProiconsEye class="h-4 w-4" />
<p>{{ 1 + partyUsers.length }}</p>
</template>
<template #content>
- <section class="flex flex-col text-xs h-12 xs:h-24 md:h-fit overflow-y-auto scrollbar-minimal transition-transform gap-2 p-1">
+ <section class="scrollbar-minimal flex h-12 flex-col gap-2 overflow-y-auto p-1 text-xs transition-transform xs:h-24 md:h-fit">
<section class="flex justify-between">
<h3>Party ({{ 1 + partyUsers.length }}/8)</h3>
- <span class="flex gap-1 justify-end">
+ <span class="flex justify-end gap-1">
<VideoButton :icon="ProiconsAdd" title="Invite to Party" @click="toast('Would open friends list', { type: 'info' })" />
<VideoButton :icon="LucideLogOut" title="Leave Party" @click="toast('Would leave party', { type: 'info' })" />
</span>
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vue
index fe1377f5..4c971873 100755
--- a/resources/js/components/video/VideoPlayer.vue
+++ b/resources/js/components/video/VideoPlayer.vue
@@ -1088,8 +1088,8 @@ defineExpose({
id="player-controls"
>
<!-- Video Stats (Z-7) -->
- <section class="pointer-events-auto absolute left-0 top-0 p-1 sm:p-4" v-show="isShowingStats" style="z-index: 7">
- <div class="flex w-fit gap-2 rounded-md border border-slate-700/20 bg-neutral-900/80 p-2 sm:min-w-52">
+ <section :class="['pointer-events-auto absolute left-0 top-0 p-1 sm:p-4', { 'top-6': isFullScreen }]" v-show="isShowingStats" style="z-index: 7">
+ <div class="flex w-fit gap-2 rounded-md border border-neutral-700/10 bg-neutral-800/90 p-2 backdrop-blur-sm sm:min-w-52">
<span class="text-right [&>*]:line-clamp-1 [&>*]:break-all">
<p title="Dropped Frames vs Total Frames" v-if="!isAudio">Dropped Frames:</p>
<p title="Video Buffer Health">Buffer Health:</p>
@@ -1152,7 +1152,7 @@ defineExpose({
</VideoTimeline>
<!-- Controls -->
- <section class="pointer-events-auto flex w-full items-center gap-1 p-2 pt-1">
+ <section :class="[`pointer-events-auto flex w-full items-center gap-1 p-2 ${isFullScreen ? 'pt-2' : 'pt-1.5'}`]">
<VideoControlWrapper>
<VideoButton
@click="handlePlayerToggle"
diff --git a/resources/js/components/video/VideoPopover.vue b/resources/js/components/video/VideoPopover.vue
index 159e86e8..30d6cc2e 100644
--- a/resources/js/components/video/VideoPopover.vue
+++ b/resources/js/components/video/VideoPopover.vue
@@ -133,7 +133,7 @@ onUnmounted(() => {
v-if="popoverOpen"
:class="[
popoverClass,
- `${popoverPosition === 'bottom' ? `top-8 ${verticalOffset ? `sm:top-${verticalOffset}` : 'sm:top-12'}` : `${verticalOffset ? `bottom-${verticalOffset}` : `bottom-12`}`}`,
+ `${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',
]"
ref="popover"
@@ -157,7 +157,7 @@ onUnmounted(() => {
:class="`absolute left-1/2 inline-block w-5 -translate-x-2 overflow-hidden ${popoverPosition === 'bottom' ? 'top-0 mt-px -translate-y-2.5' : 'bottom-0 mb-px translate-y-2.5'}`"
>
<div
- :class="`h-2.5 w-2.5 transform rounded-sm border-l border-neutral-700/10 bg-neutral-800/90 ${popoverPosition === 'bottom' ? 'origin-bottom-left rotate-45 border-t' : 'origin-top-left -rotate-45 border-b'} `"
+ :class="`h-2.5 w-2.5 transform rounded-sm border-l border-neutral-700/10 bg-neutral-900/80 ${popoverPosition === 'bottom' ? 'origin-bottom-left rotate-45 border-t' : 'origin-top-left -rotate-45 border-b'} `"
></div>
</div>
<slot name="content">