@@ -153,7 +153,7 @@ export default defineComponent({
153
153
<template >
154
154
<div
155
155
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"
157
157
>
158
158
<!-- Main Bar -->
159
159
<div
@@ -162,8 +162,8 @@ export default defineComponent({
162
162
'bg-green-100 dark:bg-green-800': moving
163
163
}"
164
164
: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) `
167
167
}"
168
168
@mousedown =" onMainBarMouseDown"
169
169
/>
@@ -172,8 +172,8 @@ export default defineComponent({
172
172
<div
173
173
class =" absolute h-full rounded top-0 bg-green-300 dark:bg-green-700 cursor-ew-resize"
174
174
: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 '
177
177
}"
178
178
@mousedown =" onStartHandleMouseDown"
179
179
/>
@@ -182,8 +182,8 @@ export default defineComponent({
182
182
<div
183
183
class =" absolute h-full rounded top-0 bg-green-300 dark:bg-green-700 cursor-ew-resize"
184
184
: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 '
187
187
}"
188
188
@mousedown =" onEndHandleMouseDown"
189
189
/>
0 commit comments