From 032fcf12e012ca748741d66d9f0281d50d188d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Sat, 17 Aug 2024 11:39:22 +0200 Subject: [PATCH] "Removed dynamic generation of zoom levels in datalist, replaced with a single static option of 100%" --- client/homebrew/brewRenderer/toolBar/toolBar.jsx | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/client/homebrew/brewRenderer/toolBar/toolBar.jsx b/client/homebrew/brewRenderer/toolBar/toolBar.jsx index 5043b89c8..0c6eb8704 100644 --- a/client/homebrew/brewRenderer/toolBar/toolBar.jsx +++ b/client/homebrew/brewRenderer/toolBar/toolBar.jsx @@ -91,17 +91,9 @@ const ToolBar = ({ updateZoom, currentPage, onPageChange, totalPages }) => { } }} /> - - {Array.from( - { - length: - Math.floor((maxZoom - minZoom) / zoomStep) + 1, - }, - (_, i) => minZoom + i * zoomStep - ).map((option) => ( - + +