0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-03 06:12:51 +00:00

"Removed dynamic generation of zoom levels in datalist, replaced with a single static option of 100%"

This commit is contained in:
Víctor Losada Hernández
2024-08-17 11:39:22 +02:00
parent 5ee4ada112
commit 032fcf12e0

View File

@@ -91,17 +91,9 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
} }
}} }}
/> />
<datalist id="zoomLevels"> <datalist id='zoomLevels'>
{Array.from( <option value='100' />
{ </datalist>
length:
Math.floor((maxZoom - minZoom) / zoomStep) + 1,
},
(_, i) => minZoom + i * zoomStep
).map((option) => (
<option key={option} value={option} />
))}
</datalist>
</div> </div>
<div className="tool"> <div className="tool">