From e45d64ed4e5178f825d8900bfce1a8eb02988360 Mon Sep 17 00:00:00 2001 From: mummified-corroding-granny Date: Fri, 3 Feb 2023 19:55:19 +0000 Subject: [PATCH] Post Meta: prevent/minimize meta elements getting split between multiple lines (#110) prevent/minimize meta elements getting split between multiple lines in post meta: * posted relative time: 2m ago * type (youtube.com) * edited: x time ago * views: 5 thread views While this is not common for your average post with low ammount of awards on a 1080p desktop, it is especially bad: * on mobile for most posts * users with different system zoom * on posts popular posts * when the poster has a long flair Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/110 Co-authored-by: mummified-corroding-granny Co-committed-by: mummified-corroding-granny --- files/templates/util/macros.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index 6ce64aadd..967715a85 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -104,13 +104,12 @@ {{p.author.customtitle | safe}} {% endif %} {% endif %} -  {{p.age_string}} -   - ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.is_audio %}audio post{% elif p.domain %}{% else %}text post{% endif %}) +  {{p.age_string}} + ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.is_audio %}audio post{% elif p.domain %}{% else %}text post{% endif %}) {% if p.edited_utc %} - Edited {{p.edited_string}} + Edited {{p.edited_string}} {% endif %} - {{p.views}} thread views + {{p.views}} thread views {% endmacro %} {% macro comment_reply_box(target_fullname, html_id, wrapper_css_classes="", subwrapper_css_classes="", hide="", allow_file_upload=true, enable_cancel_button=true) %}