From 45f4e2d1699d8fe606d837412fe06c862d27c779 Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Tue, 6 May 2025 22:35:40 +0200 Subject: [PATCH] Remove unnecessary spaces at the end of HTML tag. --- backend/scss/main.scss | 8 ++++++++ backend/templates/base_with_header.html | 4 ++-- backend/templates/logs.html | 2 +- backend/templates/recipe_edit.html | 2 +- backend/templates/recipe_view.html | 8 ++++---- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/backend/scss/main.scss b/backend/scss/main.scss index 49a7d4f..6f32c6e 100644 --- a/backend/scss/main.scss +++ b/backend/scss/main.scss @@ -90,6 +90,14 @@ body { ul { padding-left: 20px; + + li { + margin-bottom: calc(consts.$margin / 2); + + a { + padding: calc(consts.$margin / 2); + } + } } hr { diff --git a/backend/templates/base_with_header.html b/backend/templates/base_with_header.html index 7fe0b10..a200c5b 100644 --- a/backend/templates/base_with_header.html +++ b/backend/templates/base_with_header.html @@ -8,7 +8,7 @@ {% match context.user %} {% when Some with (user) %} - {{ context.tr.t(Sentence::CreateNewRecipe) }} + {{ context.tr.t(Sentence::CreateNewRecipe) }} {% if user.is_admin %} LogsDev panel {% endif %} @@ -20,7 +20,7 @@ {% endif %} / {{ context.tr.t(Sentence::SignOut) }} {% when None %} - {{ context.tr.t(Sentence::SignInMenu) }} / {{ context.tr.t(Sentence::SignUpMenu) }} / {{ context.tr.t(Sentence::LostPassword) }} + {{ context.tr.t(Sentence::SignInMenu) }} / {{ context.tr.t(Sentence::SignUpMenu) }} / {{ context.tr.t(Sentence::LostPassword) }} {% endmatch %} diff --git a/backend/templates/logs.html b/backend/templates/logs.html index f0357fa..559eda7 100644 --- a/backend/templates/logs.html +++ b/backend/templates/logs.html @@ -22,7 +22,7 @@ {% else %} odd {% endif %} - " > + "> {% let l_info = Log::split_line(l) %} {{ l_info.date_time }} {{ l_info.level }} diff --git a/backend/templates/recipe_edit.html b/backend/templates/recipe_edit.html index 8b1311f..1365bb3 100644 --- a/backend/templates/recipe_edit.html +++ b/backend/templates/recipe_edit.html @@ -49,7 +49,7 @@
- + -

{{ recipe.title }}

+

{{ recipe.title }}

{% if let Some(user) = context.user %} {% if user.can_edit_recipe(recipe) %} - Edit + Edit {% endif %} {% endif %} @@ -50,7 +50,7 @@ {% if !recipe.description.is_empty() %} -
+
{{ recipe.description | markdown }}
{% endif %} @@ -83,7 +83,7 @@
{# To create a modal dialog to choose a date and and servings #} -
+
{% include "calendar.html" %}