Spaces:
Build error
Build error
Download src/lib/utils/text-scale.ts from fathos82/open-webui: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/spaces/fathos82/open-webui/resolve/main/src/lib/utils/text-scale.ts
- Command line
-
hf download hf://spaces/fathos82/open-webui/src/lib/utils/text-scale.ts
-
curl -L -o text-scale.ts https://huggingface.co/spaces/fathos82/open-webui/resolve/main/src/lib/utils/text-scale.ts
175 Bytes
| export const setTextScale = (scale) => { | |
| if (typeof document === 'undefined') { | |
| return; | |
| } | |
| document.documentElement.style.setProperty('--app-text-scale', `${scale}`); | |
| }; | |