From db1c5a3b4fac65150dccb00495f0f087b9643aea Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 8 May 2023 18:42:17 +0900 Subject: [PATCH] Update MkMediaList.vue --- 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 d28c78fe5c..09c156a5cc 100644 --- a/packages/frontend/src/components/MkMediaList.vue +++ b/packages/frontend/src/components/MkMediaList.vue @@ -203,7 +203,7 @@ const previewable = (file: misskey.entities.DriveFile): boolean => { min-height: 64px; max-height: clamp( 64px, - calc(var(--containerHeight, 100svh) * 0.5), // but --containerHeight can broken (too big) + calc(100cqh * 0.5), min(334px, 50vh) );