fix: UI scale buttons (- and +) (#19699)

This commit is contained in:
G30 2025-12-03 17:17:05 -05:00 committed by GitHub
parent b560775713
commit 133618aaf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -364,7 +364,7 @@
type="button"
class="rounded-lg p-1 transition outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
on:click={() => {
textScale = Math.max(1, textScale);
textScale = Math.max(1, parseFloat((textScale - 0.1).toFixed(2)));
setTextScaleHandler(textScale);
}}
aria-labelledby="ui-scale-label"
@ -397,7 +397,7 @@
type="button"
class="rounded-lg p-1 transition outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
on:click={() => {
textScale = Math.min(1.5, textScale);
textScale = Math.min(1.5, parseFloat((textScale + 0.1).toFixed(2)));
setTextScaleHandler(textScale);
}}
aria-labelledby="ui-scale-label"