From 822843c44abbc3f65f27635daf8504f655743c63 Mon Sep 17 00:00:00 2001 From: Mathieu Ponton <mponton@grandlyon.com> Date: Wed, 27 Mar 2024 14:28:51 +0000 Subject: [PATCH] fix(post): fix the size of embedded YouTube videos. --- .../post-details/post-details.component.scss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/app/post/components/post-details/post-details.component.scss b/src/app/post/components/post-details/post-details.component.scss index 3c8671b56..5f678e4f4 100644 --- a/src/app/post/components/post-details/post-details.component.scss +++ b/src/app/post/components/post-details/post-details.component.scss @@ -47,6 +47,7 @@ h1 { } .description { + position: relative; a { font-size: $font-size-small; color: $red; @@ -64,11 +65,6 @@ h1 { ::ng-deep img { height: 100%; } - ::ng-deep iframe { - width: 100% !important; - max-height: 400px; - height: 100vw; - } ::ng-deep .kg-embed-card { max-height: 400px; iframe { @@ -83,4 +79,9 @@ h1 { text-align: center; } } + iframe { + position: relative; + width: 100%; + height: 400px; + } } -- GitLab