From 845ba953cb476a2353049b2db7df41131b1871e8 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Sat, 15 Sep 2018 22:32:03 +0200 Subject: [PATCH] Make YouTube shortcode embeds responsive Part of T56813 --- pillar/shortcodes.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pillar/shortcodes.py b/pillar/shortcodes.py index 63104907..ff934a5c 100644 --- a/pillar/shortcodes.py +++ b/pillar/shortcodes.py @@ -162,9 +162,12 @@ class YouTube: if not youtube_id: return html_module.escape('{youtube invalid YouTube ID/URL}') - src = f'https://www.youtube.com/embed/{youtube_id}?rel=0' - html = f'' + src = f'https://www.youtube.com/embed/{youtube_id}?rel=0' + html = f'
' \ + f'' \ + f'
' return html