diff --git a/files/assets/css/main.scss b/files/assets/css/main.scss index 13ee39a02..f7e14b406 100644 --- a/files/assets/css/main.scss +++ b/files/assets/css/main.scss @@ -3312,8 +3312,29 @@ div.deleted.banned { } .in-comment-image { - max-height: 100px !important; - max-width: 100px !important; + max-height: 150px !important; + max-width: 100% !important; + border-radius: 0.2rem !important; + margin-top: 0.5rem !important; + margin-bottom: 0.5rem !important; +} + +.embedvid { + max-height: 200px !important; + max-width: 100% !important; +} + +.emoji { + height: 30px !important; +} + +.bigemoji { + height: 60px !important; +} + +.spotify { + max-height: 80px !important; + max-width: 100% !important; } .onboarding-card { diff --git a/files/assets/js/gif_modal.js b/files/assets/js/gif_modal.js index 19ed4c651..f492e1165 100644 --- a/files/assets/js/gif_modal.js +++ b/files/assets/js/gif_modal.js @@ -24,7 +24,7 @@ async function getGif(searchTerm) { container.innerHTML = ''; if (searchTerm == undefined) { - container.innerHTML = '
' + container.innerHTML = ' ' backBtn.innerHTML = null; @@ -52,12 +52,12 @@ async function getGif(searchTerm) { } else { for (var i = 0; i < 48; i++) { - gifURL[i] = "https://media.giphy.com/media/" + data[i].id + "/200w_d.webp"; + gifURL[i] = "https://media.giphy.com/media/" + data[i].id + "/giphy.webp"; if (data[i].username==''){ - container.innerHTML += (' '); + container.innerHTML += (' '); } else { - container.innerHTML += (' '); + container.innerHTML += (' '); } noGIFs.innerHTML = null; loadGIFs.innerHTML = 'Thou've reached the end of the list!
(https:.*?\.mp4)
', sanitized): - sanitized = sanitized.replace(i.group(0), f'') + sanitized = sanitized.replace(i.group(0), f'
')
for i in re.finditer('{url}'
- htmlsource = f''
+ htmlsource = f''
sanitized = sanitized.replace(replacing, htmlsource)
for rd in ["https://reddit.com/", "https://new.reddit.com/", "https://www.reddit.com/", "https://redd.it/"]:
diff --git a/files/templates/api.html b/files/templates/api.html
index 90f812f2f..d11cf94fa 100644
--- a/files/templates/api.html
+++ b/files/templates/api.html
@@ -6,7 +6,7 @@
{% endblock %}
{% block content %}
-
+
diff --git a/files/templates/authforms.html b/files/templates/authforms.html index 582465020..fa8b3199e 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -14,10 +14,10 @@ {% if v %} - - {% if v.agendaposter %}{% elif v.css %}{% endif %} + + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %} diff --git a/files/templates/default.html b/files/templates/default.html index f806fcfb2..88be4090c 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -249,10 +249,10 @@ {% block stylesheets %} {% if v %} - - {% if v.agendaposter %}{% elif v.css %}{% endif %} + + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %} {% endblock %} diff --git a/files/templates/expanded_image_modal.html b/files/templates/expanded_image_modal.html index 964e4c582..17a78e74e 100644 --- a/files/templates/expanded_image_modal.html +++ b/files/templates/expanded_image_modal.html @@ -4,9 +4,6 @@ var linkText = document.getElementById("desktop-expanded-image-link"); var imgLink = document.getElementById("desktop-expanded-image-wrap-link"); - var inlineImage = document.getElementById("desktop-expanded-image"); - - inlineImage.src = image.replace("200w_d.webp", "giphy.webp"); linkText.href = image; imgLink.href=image; diff --git a/files/templates/gif_modal.html b/files/templates/gif_modal.html index 1a1a46e17..737836438 100644 --- a/files/templates/gif_modal.html +++ b/files/templates/gif_modal.html @@ -1,4 +1,4 @@ - +