From 4c62089bb6240ea6952e2142ae26f736f11db6e2 Mon Sep 17 00:00:00 2001 From: srgooglo Date: Tue, 11 Oct 2022 14:23:51 +0200 Subject: [PATCH] fix object fit --- .../components/PostCard/components/additions/index.less | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/app/src/components/PostCard/components/additions/index.less b/packages/app/src/components/PostCard/components/additions/index.less index 271d60b9..7f673693 100644 --- a/packages/app/src/components/PostCard/components/additions/index.less +++ b/packages/app/src/components/PostCard/components/additions/index.less @@ -80,6 +80,11 @@ max-height: 50vh; + .plyr { + width: 100%; + height: 100%; + } + // fixtures for media content img { width: 100%; @@ -88,7 +93,7 @@ user-select: none; -webkit-user-drag: none; - object-fit: cover; + object-fit: contain; } video { @@ -97,7 +102,7 @@ user-select: none; -webkit-user-drag: none; - object-fit: cover; + object-fit: contain; } audio {