fix: ScrollAreaThumb width in horizontal orientation (#309)
This commit is contained in:
parent
42f0086586
commit
8bd5525368
|
|
@ -15,7 +15,7 @@ const props = withDefaults(defineProps<ScrollAreaScrollbarProps>(), {
|
||||||
orientation === 'vertical'
|
orientation === 'vertical'
|
||||||
&& 'h-full w-2.5 border-l border-l-transparent p-[1px]',
|
&& 'h-full w-2.5 border-l border-l-transparent p-[1px]',
|
||||||
orientation === 'horizontal'
|
orientation === 'horizontal'
|
||||||
&& 'h-2.5 border-t border-t-transparent p-[1px]',
|
&& 'h-2.5 flex-col border-t border-t-transparent p-[1px]',
|
||||||
$attrs.class ?? '')"
|
$attrs.class ?? '')"
|
||||||
>
|
>
|
||||||
<ScrollAreaThumb class="relative flex-1 rounded-full bg-border" />
|
<ScrollAreaThumb class="relative flex-1 rounded-full bg-border" />
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ const props = withDefaults(defineProps<ScrollAreaScrollbarProps>(), {
|
||||||
orientation === 'vertical'
|
orientation === 'vertical'
|
||||||
&& 'h-full w-2.5 border-l border-l-transparent p-[1px]',
|
&& 'h-full w-2.5 border-l border-l-transparent p-[1px]',
|
||||||
orientation === 'horizontal'
|
orientation === 'horizontal'
|
||||||
&& 'h-2.5 border-t border-t-transparent p-[1px]',
|
&& 'h-2.5 flex-col border-t border-t-transparent p-[1px]',
|
||||||
$attrs.class ?? '')"
|
$attrs.class ?? '')"
|
||||||
>
|
>
|
||||||
<ScrollAreaThumb class="relative flex-1 rounded-full bg-border" />
|
<ScrollAreaThumb class="relative flex-1 rounded-full bg-border" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user