Skip to content

Commit 0ad8f6e

Browse files
committed
refactor: fix controls for video player
1 parent 55d071e commit 0ad8f6e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

frontend/app/components/ShareVideoPlayer.vue

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@
100100

101101
<div
102102
v-if="active"
103-
class="absolute inset-x-0 bottom-0 z-30 bg-linear-to-t from-black/40 via-black/10 to-transparent px-2.5 pb-2.5 pt-6 text-white transition-opacity duration-150 sm:px-3 sm:pb-3 sm:pt-8"
103+
class="absolute inset-x-0 bottom-0 z-30 bg-linear-to-t from-black/60 via-black/22 to-transparent px-3 pb-3 pt-10 text-white transition-opacity duration-150"
104104
:class="customControlsVisible ? 'opacity-100' : 'pointer-events-none opacity-0'"
105105
@click.self="toggleCustomControlsVisibility"
106106
@pointermove="showCustomControls"
107107
>
108108
<div
109-
class="rounded-sm border border-white/6 bg-black/10 p-2 shadow-sm backdrop-blur-[2px] sm:p-2.5"
109+
class="rounded-sm border border-white/8 bg-black/18 p-2.5 shadow-lg backdrop-blur-sm sm:p-3"
110110
>
111111
<div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3">
112112
<div class="sm:min-w-0 sm:flex-1">
@@ -116,15 +116,13 @@
116116
min="0"
117117
max="1000"
118118
step="1"
119-
class="h-1.5 w-full accent-white opacity-60 transition-opacity hover:opacity-100"
119+
class="h-1.5 w-full accent-white opacity-70 transition-opacity hover:opacity-100"
120120
aria-label="Seek video"
121121
@input="handleCustomVideoSeek"
122122
/>
123123
</div>
124-
<div
125-
class="flex flex-col gap-2 sm:shrink-0 sm:flex-row sm:items-center sm:justify-end sm:gap-3"
126-
>
127-
<div class="flex min-w-0 items-center gap-2 sm:justify-start">
124+
<div class="flex items-center justify-between gap-2 sm:shrink-0 sm:justify-end">
125+
<div class="flex min-w-0 items-center gap-2">
128126
<UButton
129127
color="neutral"
130128
variant="soft"
@@ -155,12 +153,13 @@
155153
@click="toggleCurrentMediaMute"
156154
/>
157155
<input
156+
v-if="!isTouchDevice"
158157
:value="Math.round(effectiveStoredMediaVolume * 100)"
159158
type="range"
160159
min="0"
161160
max="100"
162161
step="1"
163-
class="min-w-0 flex-1 accent-white opacity-60 transition-opacity hover:opacity-100 sm:w-20 sm:flex-none"
162+
class="w-16 accent-white opacity-70 transition-opacity hover:opacity-100 sm:w-20"
164163
aria-label="Video volume"
165164
@input="handleCustomVideoVolumeChange"
166165
/>

frontend/nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default defineNuxtConfig({
6565
provider: 'none',
6666
fallbackToApi: false,
6767
clientBundle: {
68+
icons: ['lucide:loader-circle'],
6869
scan: {
6970
globInclude: ['app/**/*.{vue,ts,js}', 'node_modules/@nuxt/ui/dist/shared/ui*.mjs'],
7071
globExclude: ['dist', 'build', 'coverage', 'test', 'tests', '.*'],

0 commit comments

Comments
 (0)