From 8d5faf713319cedd7d76efcca4b5790884b9bb39 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Wed, 3 Apr 2024 08:15:23 +1300 Subject: [PATCH] move cross post icon down to utilities bar #144 --- app/static/structure.css | 10 ++++++++++ app/static/structure.scss | 11 +++++++++++ app/templates/post/_post_full.html | 15 +++++++-------- 3 files changed, 28 insertions(+), 8 deletions(-) diff --git a/app/static/structure.css b/app/static/structure.css index b9328d3d..5a631fc0 100644 --- a/app/static/structure.css +++ b/app/static/structure.css @@ -742,6 +742,16 @@ fieldset legend { display: flex; min-height: 44px; } +.post_utilities_bar .cross_post_button { + display: flex; + justify-content: left; + align-items: center; + width: 44px; + height: 44px; + line-height: 44px; + padding: 3px; + padding-left: 0; +} .post_utilities_bar .post_options_link { display: flex; width: 44px; diff --git a/app/static/structure.scss b/app/static/structure.scss index 6ae37986..5c0951c6 100644 --- a/app/static/structure.scss +++ b/app/static/structure.scss @@ -346,6 +346,17 @@ html { display: flex; min-height: $min-touch-target; + .cross_post_button { + display: flex; + justify-content: left; + align-items: center; + width: $min-touch-target; + height: $min-touch-target; + line-height: $min-touch-target; + padding: 3px; + padding-left: 0; + } + .post_options_link { display: flex; width: $min-touch-target; diff --git a/app/templates/post/_post_full.html b/app/templates/post/_post_full.html index 825f8ccb..a24cb457 100644 --- a/app/templates/post/_post_full.html +++ b/app/templates/post/_post_full.html @@ -20,10 +20,6 @@ {% if post.nsfw %}nsfw{% endif %} {% if post.nsfl %}nsfl{% endif %} - {% if post.cross_posts %} - - {{ len(post.cross_posts) }} - {% endif %} {% if post.url %}

{{ post.url|shorten_url }}

@@ -70,10 +66,6 @@ {% if post.nsfw %}nsfw{% endif %} {% if post.nsfl %}nsfl{% endif %} - {% if post.cross_posts %} - - {{ len(post.cross_posts) }} - {% endif %} {% if post.type == POST_TYPE_LINK and post.image_id and not (post.url and 'youtube.com' in post.url) %}
{{ post.image.alt_text if post.image.alt_text else '' }} {% endif %}
+ {% if post.cross_posts %} +
+ + {{ len(post.cross_posts) }} +
+ {% endif %}