0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 14:22:52 +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,16 +91,8 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => {
} }
}} }}
/> />
<datalist id="zoomLevels"> <datalist id='zoomLevels'>
{Array.from( <option value='100' />
{
length:
Math.floor((maxZoom - minZoom) / zoomStep) + 1,
},
(_, i) => minZoom + i * zoomStep
).map((option) => (
<option key={option} value={option} />
))}
</datalist> </datalist>
</div> </div>