From 71440fdd36fe9a9afe6d531f2de4fdded90f61fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Farka?= <stepanfarka11@gmail.com> Date: Wed, 7 Sep 2022 14:35:45 +0200 Subject: [PATCH] [FIX] height of image --- .../_patterns/molecules/articles/main-article-preview.mustache | 2 +- main/templates/main/blocks/news_block.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/styleguide/source/_patterns/molecules/articles/main-article-preview.mustache b/main/styleguide/source/_patterns/molecules/articles/main-article-preview.mustache index 9d2c39e80..9985aea0f 100644 --- a/main/styleguide/source/_patterns/molecules/articles/main-article-preview.mustache +++ b/main/styleguide/source/_patterns/molecules/articles/main-article-preview.mustache @@ -1,7 +1,7 @@ <div class="flex flex-wrap mb-5 lg:mb-10"> <a href="#"> <img src="https://i.picsum.photos/id/361/576/576.jpg?hmac=kb62KiZkyDuigb46DUJQd7QvQM6LfYFolTdIMwEqei4" alt="" - class="lg:max-w-lg lg:mr-11 h-fit"> + class="lg:max-w-lg lg:mr-11"> </a> <div class="flex flex-col max-w-xl items-start"> <span class="text-green-500 head-3xl mt-10 mb-4 lg:mb-8">2.3.2022</span> diff --git a/main/templates/main/blocks/news_block.html b/main/templates/main/blocks/news_block.html index 7382583fd..e9eab73e6 100644 --- a/main/templates/main/blocks/news_block.html +++ b/main/templates/main/blocks/news_block.html @@ -9,7 +9,7 @@ <div class="flex flex-wrap mb-5 lg:mb-10"> {% image article_main.image fill-576x576 as article_img %} <a href="{{ article_main.url }}"> - <img src="{{ article_img.url }}" draggable="false" alt="" class="lg:max-w-lg lg:mr-11 h-fit"> + <img src="{{ article_img.url }}" draggable="false" alt="" class="lg:max-w-lg lg:mr-11"> </a> <div class="flex flex-col max-w-xl items-start"> <span class="text-green-500 head-3xl mt-10 mb-4 lg:mb-8">{{ article_main.date }}</span> -- GitLab