Skip to content

Commit 97383db

Browse files
committed
fix: timeline view has less overflow on mobile
1 parent 02c4429 commit 97383db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/src/views/CameraTimelineView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ const handleVideoEnded = () => {
353353
<!-- Multi-Recording Timeline -->
354354
<div class="bg-black text-white px-6 py-4">
355355
<!-- Time Window Controls -->
356-
<div class="flex items-center justify-between mb-3 gap-4">
356+
<div class="flex flex-col sm:flex-row items-start sm:items-center justify-between mb-3 gap-3">
357357
<div class="flex items-center gap-2">
358358
<button
359359
@click="goToPreviousWindow"
@@ -372,12 +372,12 @@ const handleVideoEnded = () => {
372372
</button>
373373
</div>
374374

375-
<div class="flex items-center gap-3 flex-shrink-0">
375+
<div class="flex flex-wrap items-center gap-2 sm:gap-3 text-sm">
376376
<select
377377
v-if="streamStore.streams.length > 0"
378378
:value="streamId"
379379
@change="router.push({ name: 'camera-timeline', params: { streamId: ($event.target as HTMLSelectElement).value } })"
380-
class="bg-gray-800 text-white px-3 py-1 rounded text-sm border border-gray-700"
380+
class="bg-gray-800 text-white px-2 sm:px-3 py-1 rounded text-sm border border-gray-700"
381381
>
382382
<option v-once v-for="s in streamStore.streams" :key="s.id" :value="s.id">
383383
{{ s.name }}
@@ -386,7 +386,7 @@ const handleVideoEnded = () => {
386386
<span class="text-sm text-gray-400 whitespace-nowrap">{{ formatDate(windowStartTime) }}</span>
387387
<select
388388
v-model.number="data.timeWindowIndex"
389-
class="bg-gray-800 text-white px-3 py-1 rounded text-sm border border-gray-700"
389+
class="bg-gray-800 text-white px-2 sm:px-3 py-1 rounded text-sm border border-gray-700"
390390
>
391391
<option v-once v-for="(option, idx) in TIME_WINDOW_OPTIONS" :key="`tw-${idx}`" :value="idx">
392392
{{ option.label }}

0 commit comments

Comments
 (0)