diff --git a/src/features/utils/components.js b/src/features/utils/components.js index 768c60d..6228f7b 100644 --- a/src/features/utils/components.js +++ b/src/features/utils/components.js @@ -154,90 +154,100 @@ function Knob({ }, [onMouseMove]); return ( -
- - - - - - {/* Track outer */} - - {/* Value fill */} - - - + {/* TOOLTIP */} +
+ {Math.round(value * maxValue)} +
+
- {/* Knob */} - - {/* Highlight */} - + position: 'relative', + cursor: 'pointer', + height: size, + width: size, + overflow: 'hidden', + flexShrink: 0, + }} + onMouseDown={onMouseDown}> + {/* KNOB */} + + + + + + {/* Track outer */} + + {/* Value fill */} + + - { - - } + {/* Knob */} + + {/* Highlight */} + + + { + + } + - +
); }