From 430ea4a1203760994c803d4b7cd809e9ccd81857 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 7 Jul 2025 13:19:49 +0200 Subject: [PATCH] Solved loading bug --- app/static/css/default.css | 5 +- app/templates/moduls/base.html.j2 | 11 +++- app/templates/moduls/card.html.j2 | 70 ++++++++++++++----------- app/templates/moduls/navigation.html.j2 | 2 +- app/utils/cache_manager.py | 52 +++++++----------- 5 files changed, 68 insertions(+), 72 deletions(-) diff --git a/app/static/css/default.css b/app/static/css/default.css index 5e9ae47..7d4491c 100644 --- a/app/static/css/default.css +++ b/app/static/css/default.css @@ -96,11 +96,8 @@ h3.footer-title { font-size: 1.3em; } -.card-img-top i { +.card-img-top i, .card-img-top object{ font-size: 100px; -} - -svg { fill: currentColor; } diff --git a/app/templates/moduls/base.html.j2 b/app/templates/moduls/base.html.j2 index 6875687..884010a 100644 --- a/app/templates/moduls/base.html.j2 +++ b/app/templates/moduls/base.html.j2 @@ -3,7 +3,11 @@ {{platform.titel}} - + @@ -29,7 +33,10 @@ >
- logo + logo

{{platform.titel}}

{{platform.subtitel}}

diff --git a/app/templates/moduls/card.html.j2 b/app/templates/moduls/card.html.j2 index 171ef04..dbfcbb5 100644 --- a/app/templates/moduls/card.html.j2 +++ b/app/templates/moduls/card.html.j2 @@ -1,35 +1,43 @@
-
-
-
- {% if card.icon.cache %} - {% if card.icon.cache.endswith('.svg') %} - - {% if card.icon.class %} - - {% endif %} - - {% else %} - {{ card.title }} - {% if card.icon.class %} - - {% endif %} - {% endif %} - {% elif card.icon.class %} - - {% endif %} -
-
-

{{ card.title }}

-

{{ card.text }}

- {% if card.url %} - - {{ card.link_text }} - - {% else %} - {{ card.link_text }} +
+
+
+ {% if card.icon.cache %} + {% if card.icon.cache.endswith('.svg') %} + + {% if card.icon.class %} + + {% endif %} + + {% else %} + {{ card.title }} + {% if card.icon.class %} + {% endif %} -
+ {% endif %} + {% elif card.icon.class %} + + {% endif %} +
+
+

{{ card.title }}

+

{{ card.text }}

+ {% if card.url %} + + {{ card.link_text }} + + {% else %} + {{ card.link_text }} + {% endif %}
+
diff --git a/app/templates/moduls/navigation.html.j2 b/app/templates/moduls/navigation.html.j2 index 24e0cdb..1a8b4c7 100644 --- a/app/templates/moduls/navigation.html.j2 +++ b/app/templates/moduls/navigation.html.j2 @@ -56,7 +56,7 @@ {% if menu_type == "header" %}