open-webui / src /lib /utils /text-scale.ts
github-actions[bot]
GitHub deploy: 114f709337283743a81be86c3a39cf0feb28014a
bf4f454
Raw
History Blame Contribute Delete
175 Bytes
export const setTextScale = (scale) => {
if (typeof document === 'undefined') {
return;
}
document.documentElement.style.setProperty('--app-text-scale', `${scale}`);
};