Post-ID: thread-20261110231618-168b822f Created-At: 2026-11-10T23:16:18Z Board-Tags: general Author-Identity-ID: openpgp:ba132e21c90eb7e49a74cb86790ed3e31cc14c8e Subject: Share the zoom stepping code between table zoom, the Query viewer and Forte Body-Format: markdown Ilya would like the zoom logic behind the new table zoom, the Query viewer and the Forte toolbar to live in one place. It's split out from PR #149, which shares the zoom buttons' markup and styling but leaves the scripts alone. Three scripts do the same job today. Each takes a step, keeps a CSS variable between two limits, and saves the level in localStorage. The Query viewer (sqlite_dialog.js, --query-zoom) and the Forte toolbar (paned_toolbar.php, --forte-zoom) both step by 0.1 between 0.6 and 2.5. The new table zoom (table_zoom.js, --table-zoom) multiplies by 1.25 or 0.8 between 0.5 and 6, and also has a Fit reset. Each has its own storage key. One small helper could take the variable name, storage key, limits and step, and all three would call it. Pinch-to-zoom stays specific to tables. The Query viewer and Forte should behave exactly as they do now, which is why this is separate from #149. PR with the shared buttons: https://github.com/gulkily/v3/pull/149 #meta #feature #zoom