mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
fix: UI scale buttons (- and +) (#19699)
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user