From e289f38192ad7440ac49e235c7e16ea8e96f79ac Mon Sep 17 00:00:00 2001 From: MCorange99 Date: Sat, 30 Mar 2024 21:50:42 +0200 Subject: [PATCH] fix css somewhat --- static/css/index.css | 11 +++++++++-- templates/index.html | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/static/css/index.css b/static/css/index.css index e3049f6..7d16e88 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -5,15 +5,22 @@ justify-items: center; margin-bottom: 10px; overflow-y: auto; - overflow-x: hidden; + overflow-x: hidden; } -.post img, .post a { +.post-img { display: block; height: 100%; object-fit: cover; } +.post-title { + line-height: 140%; + display: block; + height: 20%; + object-fit: cover; +} + .post span { display: block; diff --git a/templates/index.html b/templates/index.html index 730e44d..bb0a3f0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -23,9 +23,9 @@
{% for post in posts if posts.len() > 0 %}
- post img + post img -

{{post.title}}

+

{{post.title}}

{{post.descr}}