From 96f57956732fb8276585123ec961e49d5fbccb6e 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 2001ebf36..901aceeff 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;