Skip to content

Commit ad0d848

Browse files
committed
feat(timline): improved scrollbar design
1 parent 29077dc commit ad0d848

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/app-frontend/src/features/timeline/TimelineScrollbar.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export default defineComponent({
153153
<template>
154154
<div
155155
ref="el"
156-
class="h-6 bg-gray-200 dark:bg-gray-900 relative select-none"
156+
class="h-6 bg-gray-200 dark:bg-gray-900 rounded relative select-none"
157157
>
158158
<!-- Main Bar -->
159159
<div
@@ -162,8 +162,8 @@ export default defineComponent({
162162
'bg-green-100 dark:bg-green-800': moving
163163
}"
164164
:style="{
165-
left: `${(start - min) / (max - min) * 100}%`,
166-
width: `${(end - start) / (max - min) * 100}%`
165+
left: `calc(${(start - min) / (max - min) * 100}% - 1px)`,
166+
width: `calc(${(end - start) / (max - min) * 100}% + 1px)`
167167
}"
168168
@mousedown="onMainBarMouseDown"
169169
/>
@@ -172,8 +172,8 @@ export default defineComponent({
172172
<div
173173
class="absolute h-full rounded top-0 bg-green-300 dark:bg-green-700 cursor-ew-resize"
174174
:style="{
175-
left: `calc(${startRatio * 100}% - ${startRatio < 0.05 ? 0 : 6}px)`,
176-
width: '6px'
175+
left: `calc(${startRatio * 100}% - ${startRatio < 0.05 ? 0 : 4}px)`,
176+
width: '4px'
177177
}"
178178
@mousedown="onStartHandleMouseDown"
179179
/>
@@ -182,8 +182,8 @@ export default defineComponent({
182182
<div
183183
class="absolute h-full rounded top-0 bg-green-300 dark:bg-green-700 cursor-ew-resize"
184184
:style="{
185-
right: `calc(${endRatio * 100}% - ${endRatio < 0.05 ? 0 : 6}px)`,
186-
width: '6px'
185+
right: `calc(${endRatio * 100}% - ${endRatio < 0.05 ? 0 : 4}px)`,
186+
width: '4px'
187187
}"
188188
@mousedown="onEndHandleMouseDown"
189189
/>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy