From f45be592e345eade364f6cd078588ac246b6c11d Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 14 Apr 2023 11:41:46 +0000 Subject: [PATCH] moveComment --- packages/frontend/src/components/MkMediaList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/components/MkMediaList.vue b/packages/frontend/src/components/MkMediaList.vue index 7b678973a8..8d5b5596af 100644 --- a/packages/frontend/src/components/MkMediaList.vue +++ b/packages/frontend/src/components/MkMediaList.vue @@ -54,10 +54,10 @@ function calcAspectRatio() { return; } + // アスペクト比上限設定では、横長の場合は高さを縮小させる const ratioMax = (ratio: number) => `${Math.max(ratio, img.properties.width / img.properties.height).toString()} / 1`; switch (defaultStore.state.mediaListWithOneImageAppearance) { - // アスペクト比上限設定では、横長の場合は高さを縮小させる case '16_9': gallery.value.style.aspectRatio = ratioMax(16 / 9); break;