mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #19186] [MERGED] feat: Add adjustable text size setting to interface #48173
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/19186
Author: @davecrab
Created: 11/14/2025
Status: ✅ Merged
Merged: 11/19/2025
Merged by: @tjbck
Base:
dev← Head:feat/text-size📝 Commits (7)
c60dad2Add adjustable text size setting to interface9de2619Merge branch 'dev' into feat/text-size37b969eRefactor text scale logic into utility module25d018fAdjust sidebar chat scaling without extra classes88dcb4bUpdate Switch.svelte58a997cUpdate Interface.svelte395e446Update app.css📊 Changes
7 files changed (+216 additions, -5 deletions)
View changed files
📝
src/app.css(+25 -0)📝
src/lib/components/chat/Settings/Interface.svelte(+121 -1)📝
src/lib/components/common/Switch.svelte(+1 -1)📝
src/lib/components/layout/Sidebar/ChatItem.svelte(+2 -3)📝
src/lib/i18n/locales/en-US/translation.json(+3 -0)📝
src/lib/stores/index.ts(+9 -0)➕
src/lib/utils/text-scale.ts(+55 -0)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
The default text size it unreadable for those with visual impairments. This PR adds a slider to make it more accessible, controls text size throughout the app.
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.
Added
Updated the global settings store (src/lib/stores/index.ts) to reuse the shared helpers and keep the CSS variable update in one place.
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.