From eeb6424401e4ab36f9bcdb017b36b2957a4e06f2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 20 Jun 2023 14:13:01 +0200 Subject: [PATCH 1/1] Layout fixes --- .../picture/2022/picture_detail.html | 37 +++++++++++++++++-- .../static/2022/styles/layout/_books.scss | 5 +++ .../static/2022/styles/layout/_simple.scss | 4 ++ .../templates/forms/form_detail.html | 15 +++----- 4 files changed, 49 insertions(+), 12 deletions(-) diff --git a/src/picture/templates/picture/2022/picture_detail.html b/src/picture/templates/picture/2022/picture_detail.html index 2c897ae78..d9707c7af 100644 --- a/src/picture/templates/picture/2022/picture_detail.html +++ b/src/picture/templates/picture/2022/picture_detail.html @@ -1,4 +1,5 @@ {% extends '2022/base.html' %} +{% load i18n %} {% load chunks %} {% load static %} @@ -16,12 +17,42 @@
-
+
@@ -48,7 +79,7 @@
{% thumbnail picture.image_file "850" upscale=0 as thumb %} - + {% endthumbnail %}
@@ -57,7 +88,7 @@
- {% for author in picture.authors %} + {% for tag in picture.authors %}
{% include 'catalogue/2022/author_box.html' %} diff --git a/src/wolnelektury/static/2022/styles/layout/_books.scss b/src/wolnelektury/static/2022/styles/layout/_books.scss index 51eaba1eb..e14adbfac 100644 --- a/src/wolnelektury/static/2022/styles/layout/_books.scss +++ b/src/wolnelektury/static/2022/styles/layout/_books.scss @@ -325,3 +325,8 @@ color: #007880; } } + + +.l-art__preview { + width: 100%; +} diff --git a/src/wolnelektury/static/2022/styles/layout/_simple.scss b/src/wolnelektury/static/2022/styles/layout/_simple.scss index f87f97004..7797c9260 100644 --- a/src/wolnelektury/static/2022/styles/layout/_simple.scss +++ b/src/wolnelektury/static/2022/styles/layout/_simple.scss @@ -8,6 +8,10 @@ flex-direction: column; align-items: center; + &.wide { + align-items: normal; + } + .white-box { // for legacy templates width: 100%; diff --git a/src/wolnelektury/templates/forms/form_detail.html b/src/wolnelektury/templates/forms/form_detail.html index 09e19e30a..32df9d05f 100644 --- a/src/wolnelektury/templates/forms/form_detail.html +++ b/src/wolnelektury/templates/forms/form_detail.html @@ -1,4 +1,4 @@ -{% extends form.base_template|default:request.EXPERIMENTS.layout.value|yesno:"2022/base_simple.html,base/base.html" %} +{% extends form.base_template|default:"2022/base.html" %} {% load forms_builder_tags %} {% load title %} @@ -6,11 +6,8 @@ {% title form.title %} {% endblock %} -{% block title %}{{ form.title }}{% endblock %} - -{% block annoy %} -{% endblock %} - -{% block body %} - {% render_built_form form %} -{% endblock %} +{% block main %} +
+ {% render_built_form form %} +
+{% endblock main %} -- 2.20.1