Skip to content

A full-featured download manager.

fix(ui): reduce content bleed through scrollbar tracks (#2248)

Dr_rOotdd58db92df39
diff --git a/src/renderer/components/ui/scroll-area.tsx b/src/renderer/components/ui/scroll-area.tsx
index 16a7fc83..0072c2a8 100644
--- a/src/renderer/components/ui/scroll-area.tsx
+++ b/src/renderer/components/ui/scroll-area.tsx
@@ -50,7 +50,7 @@ export function ScrollBar({
data-slot="scroll-area-scrollbar"
orientation={orientation}
className={cn(
- 'absolute z-20 flex touch-none select-none p-0.5 opacity-0 transition-opacity duration-150 data-hovering:opacity-100 data-scrolling:opacity-100 focus-within:opacity-100 motion-reduce:transition-none',
+ 'absolute z-20 flex touch-none select-none bg-background/90 p-0.5 opacity-0 transition-opacity duration-150 data-hovering:opacity-100 data-scrolling:opacity-100 focus-within:opacity-100 motion-reduce:transition-none',
orientation === 'vertical'
? 'inset-y-0 end-0 w-2.5 data-has-overflow-x:bottom-2.5'
: 'inset-x-0 bottom-0 h-2.5 flex-col data-has-overflow-y:end-2.5',
@@ -60,7 +60,7 @@ export function ScrollBar({
>
<ScrollAreaPrimitive.Thumb
data-slot="scroll-area-thumb"
- className="relative flex-1 rounded-full bg-foreground/70 hover:bg-foreground/85"
+ className="relative flex-1 rounded-full bg-foreground/65 hover:bg-foreground/80"
/>
</ScrollAreaPrimitive.Scrollbar>
)