From 0b70cd560b82008ab686b4331accb72a1497bb24 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 9 Apr 2024 06:48:41 +0200 Subject: [PATCH] fix reddit embed height --- files/assets/css/main.css | 2 +- files/templates/post.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/assets/css/main.css b/files/assets/css/main.css index bfc8958f1..83c9517ac 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -7825,7 +7825,7 @@ img[src$="/e/speechbubble.webp"] { height: auto !important; } -#embed { +#reddit-embed, #tiktok-embed, #blind-embed, #instagram-embed { border: none; margin-bottom: 10px; } diff --git a/files/templates/post.html b/files/templates/post.html index 6dcbda806..2673f84a4 100644 --- a/files/templates/post.html +++ b/files/templates/post.html @@ -149,17 +149,17 @@ {% endif %} {% if p.url and p.url.startswith('https://old.reddit.com/r/') %} - + {% elif p.url and p.url.startswith('https://tiktok.com/@') %} {% set id = p.url.split('/video/')[1] %} {% if id %} - + {% endif %} {% elif p.domain == 'teamblind.com' %} {% set id = p.url.split('-')[-1] %} {% if id %} - + {% endif %} {% elif p.domain == 'instagram.com' %} {% set path = p.url.split('https://instagram.com/')[1].rstrip('/') %} @@ -170,7 +170,7 @@ {% set path = path + '/embed' %} {% set class = "instagram-profile-embed" %} {% endif %} - + {% endif %}