mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
fix: UI scale buttons (- and +) (#19699)
This commit is contained in:
parent
b560775713
commit
133618aaf0
1 changed files with 2 additions and 2 deletions
|
|
@ -364,7 +364,7 @@
|
||||||
type="button"
|
type="button"
|
||||||
class="rounded-lg p-1 transition outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
|
class="rounded-lg p-1 transition outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
textScale = Math.max(1, textScale);
|
textScale = Math.max(1, parseFloat((textScale - 0.1).toFixed(2)));
|
||||||
setTextScaleHandler(textScale);
|
setTextScaleHandler(textScale);
|
||||||
}}
|
}}
|
||||||
aria-labelledby="ui-scale-label"
|
aria-labelledby="ui-scale-label"
|
||||||
|
|
@ -397,7 +397,7 @@
|
||||||
type="button"
|
type="button"
|
||||||
class="rounded-lg p-1 transition outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
|
class="rounded-lg p-1 transition outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
textScale = Math.min(1.5, textScale);
|
textScale = Math.min(1.5, parseFloat((textScale + 0.1).toFixed(2)));
|
||||||
setTextScaleHandler(textScale);
|
setTextScaleHandler(textScale);
|
||||||
}}
|
}}
|
||||||
aria-labelledby="ui-scale-label"
|
aria-labelledby="ui-scale-label"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue