Skip to content

Commit 2bb4926

Browse files
committed
fix: prevent user select text
1 parent ea47b23 commit 2bb4926

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/routes/[id]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
class="h-12 px-4 border-b-2 border-b-white/5 flex justify-center items-center gap-12 relative"
9494
>
9595
<span
96-
class="tabular-nums"
96+
class="tabular-nums select-none"
9797
title={secondsToTime($videoStatus.currentTime, { showMilliseconds: true })}
9898
>
9999
{secondsToTime(Math.floor($videoStatus.currentTime))}
@@ -105,7 +105,7 @@
105105
}}
106106
/>
107107
<span
108-
class="text-white/50 tabular-nums"
108+
class="text-white/50 tabular-nums select-none"
109109
title={secondsToTime($recording?.duration ?? 0, { showMilliseconds: true })}
110110
>
111111
{secondsToTime(Math.floor($recording?.duration ?? 0))}

src/routes/[id]/components/timeline.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
{#each seconds as num}
3333
{#if num % INDICATORS_PER_DURATION[indicator].big === 0}
3434
<div class="flex flex-col items-center relative z-10">
35-
<span class="text-xs text-white/40 absolute -top-4">
35+
<span class="text-xs text-white/40 absolute -top-4 select-none">
3636
{secondsToTime(num)}
3737
</span>
3838
<div class="w-0.5 h-4 bg-white/20 translate-y-1/2" />

src/routes/[id]/components/trimmer.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
class="w-[12px] h-[75%] bg-blue-900 rounded-l-md flex justify-center items-center relative"
7171
>
7272
<output
73-
class="py-1 px-2 bg-neutral-300 rounded-md text-neutral-800 text-xs hidden absolute top-0 left-1/2 z-20 -translate-y-9 -translate-x-1/2 tabular-nums group-active:block"
73+
class="py-1 px-2 bg-neutral-300 rounded-md text-neutral-800 text-xs hidden absolute top-0 left-1/2 z-20 -translate-y-9 -translate-x-1/2 tabular-nums select-none group-active:block"
7474
>
7575
{secondsToTime($edits.startAt, { showMilliseconds: true })}
7676
</output>
@@ -81,7 +81,7 @@
8181
class="w-[12px] h-[75%] bg-blue-900 rounded-r-md flex justify-center items-center relative"
8282
>
8383
<output
84-
class="py-1 px-2 bg-neutral-300 rounded-md text-neutral-800 text-xs hidden absolute top-0 left-1/2 z-20 -translate-y-9 -translate-x-1/2 tabular-nums group-active:block"
84+
class="py-1 px-2 bg-neutral-300 rounded-md text-neutral-800 text-xs hidden absolute top-0 left-1/2 z-20 -translate-y-9 -translate-x-1/2 tabular-nums select-none group-active:block"
8585
>
8686
{secondsToTime($edits.endAt, { showMilliseconds: true })}
8787
</output>

src/routes/[id]/components/zoom-list.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
class="w-[12px] h-[75%] bg-emerald-900 rounded-l-md flex justify-center items-center relative"
147147
>
148148
<output
149-
class="py-1 px-2 bg-neutral-300 rounded-md text-neutral-800 text-xs hidden absolute top-0 left-1/2 z-20 -translate-y-9 -translate-x-1/2 tabular-nums group-active:block"
149+
class="py-1 px-2 bg-neutral-300 rounded-md text-neutral-800 text-xs hidden absolute top-0 left-1/2 z-20 -translate-y-9 -translate-x-1/2 tabular-nums select-none group-active:block"
150150
>
151151
{secondsToTime(zoom.start, { showMilliseconds: true })}
152152
</output>
@@ -157,7 +157,7 @@
157157
class="w-[12px] h-[75%] bg-emerald-900 rounded-r-md flex justify-center items-center relative"
158158
>
159159
<output
160-
class="py-1 px-2 bg-neutral-300 rounded-md text-neutral-800 text-xs hidden absolute top-0 left-1/2 z-20 -translate-y-9 -translate-x-1/2 tabular-nums group-active:block"
160+
class="py-1 px-2 bg-neutral-300 rounded-md text-neutral-800 text-xs hidden absolute top-0 left-1/2 z-20 -translate-y-9 -translate-x-1/2 tabular-nums select-none group-active:block"
161161
>
162162
{secondsToTime(zoom.end, { showMilliseconds: true })}
163163
</output>

0 commit comments

Comments
 (0)