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:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user