From fd1e4baf0e78eb9d41c1121f77b2e4c43e40f333 Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 8 May 2023 13:43:23 +0000 Subject: [PATCH] fix --- 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 6df3541e2a..11c0cb66b0 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(100svh * 0.5), + calc(var(--containerHeight, 100svh) * 0.5), // but --containerHeight can broken (too big) min(360px, 50vh) );