0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-25 09:42:40 +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">
{Array.from(
{
length:
Math.floor((maxZoom - minZoom) / zoomStep) + 1,
},
(_, i) => minZoom + i * zoomStep
).map((option) => (
<option key={option} value={option} />
))}
</datalist>
<datalist id='zoomLevels'>
<option value='100' />
</datalist>
</div>
<div className="tool">