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