custom scrollbar color fix
This commit is contained in:
@@ -192,11 +192,10 @@ export default function CustomScrollbar(props: CustomScrollbarProps) {
|
|||||||
<div
|
<div
|
||||||
ref={thumbRef}
|
ref={thumbRef}
|
||||||
onMouseDown={handleThumbMouseDown}
|
onMouseDown={handleThumbMouseDown}
|
||||||
class="absolute right-0.5 w-2 cursor-pointer rounded-full hover:w-2.5"
|
class="bg-text absolute right-0.5 w-2 cursor-pointer rounded-full hover:w-2.5"
|
||||||
style={{
|
style={{
|
||||||
height: `${Math.max(thumbHeight(), 5)}%`,
|
height: `${Math.max(thumbHeight(), 5)}%`,
|
||||||
top: `${(scrollPercentage() / 100) * (100 - thumbHeight())}%`,
|
top: `${(scrollPercentage() / 100) * (100 - thumbHeight())}%`,
|
||||||
background: isDragging() ? "#4b5563" : "#9ca3af",
|
|
||||||
transition: "width 0.15s, background 0.15s"
|
transition: "width 0.15s, background 0.15s"
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user