give default background size to slider

This commit is contained in:
tjs 2022-08-17 17:36:38 -04:00
parent 2d09b8f858
commit e168add75c
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ const LeverageSlider = ({
const val = parseFloat(target.value)
target.style.backgroundSize = ((val - min) * 100) / (max - min) + '% 100%'
onChange(e.target.value)
}
@ -36,6 +37,7 @@ const LeverageSlider = ({
step={0.000001}
className="w-full"
onChange={handleSliderChange}
style={{ backgroundSize: '50% 100%' }}
></input>
</>
)