Refine scale display and input precision in ScaleMenu

This commit is contained in:
Draythianna authored and GitHub committed 2026-04-29 14:35:56 -04:00
1 parent 8e0ecc5cfe
commit 01f4665a23
1 file changed
+3 -3
+3 -3
View File
@@ -60,7 +60,7 @@ const ScaleMenu = ( { locale } ) => {
<label className="flex justify-between items-center mb-4 text-sm text-white font-medium tracking-tight"> <label className="flex justify-between items-center mb-4 text-sm text-white font-medium tracking-tight">
<span>{locale["current_scale"]}</span> <span>{locale["current_scale"]}</span>
<span className="text-white font-bold text-sm py-1.5 px-3.5 rounded-lg border border-white/50 "> <span className="text-white font-bold text-sm py-1.5 px-3.5 rounded-lg border border-white/50 ">
{currentScale} {parseFloat(currentScale).toFixed(2)}
</span> </span>
</label> </label>
@@ -69,8 +69,8 @@ const ScaleMenu = ( { locale } ) => {
type="range" type="range"
min={minScale} min={minScale}
max={maxScale} max={maxScale}
step="0.1" step="0.01"
value={currentScale} value={parseFloat(currentScale).toFixed(2)}
onChange={handleScaleChange} onChange={handleScaleChange}
className=" className="
w-full h-1 w-full h-1