From 7ef01ce220ad1800f039621b21c640c5ba89fbd1 Mon Sep 17 00:00:00 2001 From: Lars Windolf Date: Fri, 28 Aug 2020 17:40:03 +0200 Subject: [PATCH] Fixes #850: Embedded youtube video bug. --- ChangeLog | 3 +++ css/liferea.css | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1910c87ee..03a0d8eb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ Version 1.12.9 + * #850: Fix embedded youtube video bug. + (reported by sblondon) + * Fixes #846, #864: Translations not applied to application menu bar and tool bar. (Skif-off) diff --git a/css/liferea.css b/css/liferea.css index 5fbdecf34..a2fa246fd 100644 --- a/css/liferea.css +++ b/css/liferea.css @@ -73,10 +73,20 @@ dd { padding-left: 30px; } -section, video, svg, iframe, figure, div.content * img { +section, svg, div.content * img { max-width: 100%; + box-sizing: border-box; object-fit: scale-down; +} + +figure, iframe { + max-width: 100%; box-sizing: border-box; + + /* Note: object-fit would be best practice here, but it fails + on embedded Youtube videos (pushing the embed iframe far + to the right with the controls being not in the place + visually shown) */ } div.content * img {