Files
open-webui/src/lib/components/common
davecrab 7762fa5ddf feat: Add adjustable text size setting to interface (#19186)
* Add adjustable text size setting to interface

Introduces a user-configurable text size (scale) setting, accessible via a slider in the interface settings. Updates CSS and Sidebar chat item components to respect the new --app-text-scale variable, and persists the setting in the store. Adds related i18n strings and ensures the text scale is applied globally and clamped to allowed values.

* Refactor text scale logic into utility module

Moved all text scale related constants and functions from components and stores into a new utility module (src/lib/utils/text-scale.ts). Updated imports and usage in Interface.svelte and index.ts to use the new module, improving code organization and reusability.

* Adjust sidebar chat scaling without extra classes

keep sidebar markup using existing Tailwind utility classes so chat items render identically pre-feature
move all text-scale sizing into app.css under the #sidebar-chat-item selectors
change the root font-size multiplier to use 1rem instead of an explicit 16px so browser/user preferences propagate

* Update Switch.svelte

Adjust toggles from fixed pixel to rem to scale with the text size

* Update Interface.svelte

Updated label from 'Text Scale' to 'UI Scale'.
Added padding around slider

* Update app.css

Added comments
2025-11-19 00:55:52 -05:00
..
2025-10-28 01:46:36 -07:00
2025-09-15 15:53:11 -05:00
2025-09-15 15:53:11 -05:00
2025-03-18 06:39:37 -07:00
2025-10-01 21:56:32 -05:00
2025-11-05 00:54:25 -05:00
2025-09-23 02:40:59 -04:00
2025-10-06 00:02:22 -05:00
2025-02-15 19:27:25 -08:00
2025-11-05 00:54:25 -05:00
2025-09-04 02:50:50 +04:00
2025-10-05 02:48:08 -05:00
2025-10-27 15:07:00 -07:00
2025-10-26 19:33:39 -07:00
2025-08-14 04:19:54 +04:00
2025-09-25 07:54:58 +02:00
2025-06-02 23:25:38 +04:00
2024-11-03 03:00:28 -08:00
2025-02-15 19:27:25 -08:00
2025-02-15 19:27:25 -08:00
2025-08-20 22:14:23 +08:00
2025-08-08 12:55:24 +04:00
2025-01-17 17:03:25 -08:00
2025-06-27 16:15:16 +04:00
2025-09-25 14:29:50 -05:00
2025-11-05 14:43:25 -05:00
2025-09-16 21:41:47 -05:00
2025-10-30 15:57:50 -07:00