From 26198a15b7b0bd47dbd2157fe11c0343cda1cfee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Wed, 27 Dec 2023 08:37:57 +0900 Subject: [PATCH] fix code quality issues --- packages/frontend/src/components/MkCode.vue | 4 +--- .../frontend/src/components/MkMediaList.vue | 2 +- .../frontend/src/components/MkPostForm.vue | 22 ++++++++++++++----- packages/frontend/src/types/menu.ts | 2 +- packages/frontend/src/types/page-header.ts | 2 +- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/packages/frontend/src/components/MkCode.vue b/packages/frontend/src/components/MkCode.vue index 2c016e4d7c..137d4c2bd4 100644 --- a/packages/frontend/src/components/MkCode.vue +++ b/packages/frontend/src/components/MkCode.vue @@ -66,11 +66,9 @@ const XCode = defineAsyncComponent(() => import('@/components/MkCode.core.vue')) .codePlaceholderRoot { display: block; width: 100%; - background: none; border: none; outline: none; - font: inherit; - color: inherit; + font: inherit; cursor: pointer; box-sizing: border-box; diff --git a/packages/frontend/src/components/MkMediaList.vue b/packages/frontend/src/components/MkMediaList.vue index c5be2a2f62..5dce5775ae 100644 --- a/packages/frontend/src/components/MkMediaList.vue +++ b/packages/frontend/src/components/MkMediaList.vue @@ -74,7 +74,7 @@ async function calcAspectRatio() { gallery.value.style.aspectRatio = ratioMax(16 / 9); break; case '1_1': - gallery.value.style.aspectRatio = ratioMax(1 / 1); + gallery.value.style.aspectRatio = ratioMax(1); break; case '2_3': gallery.value.style.aspectRatio = ratioMax(2 / 3); diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 89b769470a..cf41e0c1cd 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -100,7 +100,7 @@ SPDX-License-Identifier: AGPL-3.0-only