From 9bd99b2702bf36161970afb4187a2837f5e63a37 Mon Sep 17 00:00:00 2001 From: fly_mc Date: Sat, 30 Nov 2024 00:32:53 +0800 Subject: [PATCH] fix --- packages/frontend/src/_dev_boot_.ts | 2 +- packages/frontend/src/pages/settings/pari.vue | 2 +- packages/frontend/src/style.scss | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/_dev_boot_.ts b/packages/frontend/src/_dev_boot_.ts index a35069bc3..c7c608e40 100644 --- a/packages/frontend/src/_dev_boot_.ts +++ b/packages/frontend/src/_dev_boot_.ts @@ -62,7 +62,7 @@ async function main() { } //#endregion - const fontSize = localStorage.getItem('fontSize') ?? 2; + const fontSize = localStorage.getItem('fontSize') ?? 1; if (fontSize) { document.documentElement.classList.add('f-' + fontSize); } diff --git a/packages/frontend/src/pages/settings/pari.vue b/packages/frontend/src/pages/settings/pari.vue index c5cfdc65d..a912d0bba 100644 --- a/packages/frontend/src/pages/settings/pari.vue +++ b/packages/frontend/src/pages/settings/pari.vue @@ -110,7 +110,7 @@ import FormSection from '@/components/form/section.vue'; const defaultFont = getDefaultFontSettings(); 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 fontSizePx = computed(() => fontSizeNumber.value + 14); diff --git a/packages/frontend/src/style.scss b/packages/frontend/src/style.scss index 587ad364b..ea41d2fb7 100644 --- a/packages/frontend/src/style.scss +++ b/packages/frontend/src/style.scss @@ -42,7 +42,7 @@ html { overflow: auto; overflow-wrap: break-word; font-family: 'Lexend', 'Hiragino Maru Gothic Pro', "BIZ UDGothic", Roboto, HelveticaNeue, Arial, sans-serif; - font-size: 16px; + font-size: 15px; line-height: 1.35; text-size-adjust: 100%; tab-size: 2;