From 18e19a3ca7f85e451be352465edabff3298400ab Mon Sep 17 00:00:00 2001 From: borntojesus Date: Thu, 8 Feb 2024 12:36:33 +0200 Subject: [PATCH] fix UI faq --- config.toml | 1 + sass/component/post-min.scss | 18 ++++++++++++++---- templates/news.html | 5 +++-- templates/news_post.html | 4 ++-- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/config.toml b/config.toml index 161c6c4f..dd5f274c 100644 --- a/config.toml +++ b/config.toml @@ -33,6 +33,7 @@ stripe = "https://donate.organicmaps.app/" # Default English translation [translations] +home = "Home" address = "Address" back = "Back to News" contact = "Contact Us" diff --git a/sass/component/post-min.scss b/sass/component/post-min.scss index fc2771fc..eba952a1 100644 --- a/sass/component/post-min.scss +++ b/sass/component/post-min.scss @@ -5,7 +5,10 @@ display: flex; flex-direction: column; align-items: flex-start; - + ul { + list-style: disc; + padding-left: 20px; + } &__row { display: grid; grid-template-columns: 1fr 1fr; @@ -14,16 +17,22 @@ &__img { margin-bottom: 20rem; width: 100%; - max-width: 400rem; + &--float { float: right; + max-width: 100rem; + margin: 5rem; + max-height: 200rem; + object-fit: contain; } &--one { - max-height: 278rem; + max-height: 278rem; + max-width: 100%; + height: 278rem; object-fit: cover; object-position: center; border-radius: 10rem; - height: 100%; + &:not(:first-of-type) { display: none; } @@ -43,6 +52,7 @@ &__content { overflow: hidden; + margin-bottom: 60rem; } &__title { diff --git a/templates/news.html b/templates/news.html index fd02dda2..2f59e104 100644 --- a/templates/news.html +++ b/templates/news.html @@ -71,12 +71,13 @@ {% endfor %} {% if page.assets %} {% for photo in page.assets | sort %} + - + {% endfor %} {% else %} - + {% endif %} {% if page.title %}

diff --git a/templates/news_post.html b/templates/news_post.html index 7ca7fbb8..1d826c2e 100644 --- a/templates/news_post.html +++ b/templates/news_post.html @@ -26,13 +26,13 @@
  • - Need Title + {{ resource.title | safe }}
  • -

    Need Title

    +

    {{ resource.title | safe }}