From 67d59e26578112740c1d2d39662994d46f9ee30d Mon Sep 17 00:00:00 2001 From: Hendrik L Date: Mon, 9 Dec 2024 17:03:51 +0100 Subject: [PATCH] float thumbnails --- app/static/styles.css | 4 +--- app/static/styles.scss | 4 +--- app/templates/post/post_teaser/_article.html | 23 ++++++++++---------- app/templates/post/post_teaser/_link.html | 22 +++++++++---------- app/templates/post/post_teaser/_poll.html | 18 +++++++-------- 5 files changed, 31 insertions(+), 40 deletions(-) diff --git a/app/static/styles.css b/app/static/styles.css index 41c86ecb..059b380d 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -783,11 +783,9 @@ div.navbar { max-width: 78%; } .post_list .post_teaser .col_thumbnail { + float: right; width: 70px; position: relative; - padding-left: 0; - padding-right: 0; - left: -13px; } @media (min-width: 992px) { .post_list .post_teaser .col_thumbnail { diff --git a/app/static/styles.scss b/app/static/styles.scss index 896523d9..3e5c8a43 100644 --- a/app/static/styles.scss +++ b/app/static/styles.scss @@ -369,11 +369,9 @@ div.navbar { } .col_thumbnail { + float: right; width: 70px; position: relative; - padding-left: 0; - padding-right: 0; - left: -13px; @include breakpoint(tablet) { width: 170px; } diff --git a/app/templates/post/post_teaser/_article.html b/app/templates/post/post_teaser/_article.html index f5c07503..6c89804d 100644 --- a/app/templates/post/post_teaser/_article.html +++ b/app/templates/post/post_teaser/_article.html @@ -1,4 +1,15 @@
+ {% if post.image_id -%} + + {% endif -%} + {% include "post/post_teaser/_title.html" %} {% if post.body_html -%} -{% if post.image_id -%} -
- -
-{% endif -%} diff --git a/app/templates/post/post_teaser/_link.html b/app/templates/post/post_teaser/_link.html index f54e044f..57aa9951 100644 --- a/app/templates/post/post_teaser/_link.html +++ b/app/templates/post/post_teaser/_link.html @@ -1,4 +1,14 @@