mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
7 lines
175 B
TypeScript
7 lines
175 B
TypeScript
export const setTextScale = (scale) => {
|
|
if (typeof document === 'undefined') {
|
|
return;
|
|
}
|
|
|
|
document.documentElement.style.setProperty('--app-text-scale', `${scale}`);
|
|
};
|