From cb164d0f0a3527ca04d33e4a4a722a0fd88cbe9b Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sun, 28 May 2023 13:57:25 -0400 Subject: [PATCH] Hide video controls if player too small --- .../client/src/components/MkMediaList.vue | 9 +-- .../client/src/components/MkMediaVideo.vue | 56 +++++++++++++++---- 2 files changed, 48 insertions(+), 17 deletions(-) diff --git a/packages/client/src/components/MkMediaList.vue b/packages/client/src/components/MkMediaList.vue index 2001ebf363..901aceeff5 100644 --- a/packages/client/src/components/MkMediaList.vue +++ b/packages/client/src/components/MkMediaList.vue @@ -6,13 +6,9 @@ :media="media" />
{ FILE_TYPE_BROWSERSAFE.includes(file.type) ); }; +const previewableCount = props.mediaList.filter((media) => previewable(media)).length;