This commit is contained in:
fly_mc 2024-11-30 00:32:53 +08:00
parent b92aca60c1
commit 9bd99b2702
3 changed files with 3 additions and 3 deletions

View file

@ -62,7 +62,7 @@ async function main() {
} }
//#endregion //#endregion
const fontSize = localStorage.getItem('fontSize') ?? 2; const fontSize = localStorage.getItem('fontSize') ?? 1;
if (fontSize) { if (fontSize) {
document.documentElement.classList.add('f-' + fontSize); document.documentElement.classList.add('f-' + fontSize);
} }

View file

@ -110,7 +110,7 @@ import FormSection from '@/components/form/section.vue';
const defaultFont = getDefaultFontSettings(); const defaultFont = getDefaultFontSettings();
console.log(defaultFont); console.log(defaultFont);
const fontSizeNumber = ref(Number(miLocalStorage.getItem('fontSize') ?? 2)); const fontSizeNumber = ref(Number(miLocalStorage.getItem('fontSize') ?? 1));
const fontSizeNumberOld = ref(fontSizeNumber.value); const fontSizeNumberOld = ref(fontSizeNumber.value);
const fontSizePx = computed(() => fontSizeNumber.value + 14); const fontSizePx = computed(() => fontSizeNumber.value + 14);

View file

@ -42,7 +42,7 @@ html {
overflow: auto; overflow: auto;
overflow-wrap: break-word; overflow-wrap: break-word;
font-family: 'Lexend', 'Hiragino Maru Gothic Pro', "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif; font-family: 'Lexend', 'Hiragino Maru Gothic Pro', "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif;
font-size: 16px; font-size: 15px;
line-height: 1.35; line-height: 1.35;
text-size-adjust: 100%; text-size-adjust: 100%;
tab-size: 2; tab-size: 2;