From b24b53c20c25000bfbc59d51d37da8cc78c17132 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Tue, 29 Oct 2024 19:25:32 +0900 Subject: [PATCH] feat: add new setting to select line height options --- components/settings/SettingsLineHeight.vue | 54 +++++++++++++++++++ components/status/StatusBody.vue | 8 ++- components/status/StatusPreviewStackBlitz.vue | 5 +- composables/settings/definition.ts | 6 ++- constants/index.ts | 1 + locales/en.json | 7 ++- pages/settings/interface/index.vue | 1 + styles/global.css | 12 ++++- 8 files changed, 87 insertions(+), 7 deletions(-) create mode 100644 components/settings/SettingsLineHeight.vue diff --git a/components/settings/SettingsLineHeight.vue b/components/settings/SettingsLineHeight.vue new file mode 100644 index 00000000..e1ac8c1c --- /dev/null +++ b/components/settings/SettingsLineHeight.vue @@ -0,0 +1,54 @@ + + + diff --git a/components/status/StatusBody.vue b/components/status/StatusBody.vue index 0075d4cd..c7043d27 100644 --- a/components/status/StatusBody.vue +++ b/components/status/StatusBody.vue @@ -26,13 +26,17 @@ const vnode = computed(() => { inReplyToStatus: newer, }) }) + +const userSettings = useUserSettings() +const lineHeight = userSettings.value.lineHeight