From a098c9ecbafa594f62c789a75721f3c87e0f98ff Mon Sep 17 00:00:00 2001 From: afornerot Date: Fri, 1 Nov 2024 10:28:07 +0100 Subject: [PATCH] svg --- templates/Home/home.html.twig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/Home/home.html.twig b/templates/Home/home.html.twig index 310e594..8a1959d 100644 --- a/templates/Home/home.html.twig +++ b/templates/Home/home.html.twig @@ -265,6 +265,7 @@ {% set appthumbwidth=app.session.get("appthumbwidth") %} {% set appthumbheight=app.session.get("appthumbheight") %} + {% set classmini="" %} {% if appthumbwidth==0 %} {% set class="" %} {% if loop.index < 40 %} @@ -286,6 +287,13 @@ {% set class="grid-item-size-2" %} {% endif %} {% endif %} + + {% set position = (loop.index - 1) % 10 + 1 %} + {% if position == 1 or position == 8 %} + {% set classmini = 'grid-item-mini-50' %} + {% else %} + {% set classmini = 'grid-item-mini-25' %} + {% endif %} {% elseif appthumbwidth==1 %} {% set class="" %} {% elseif appthumbwidth==2 %} {% set class="grid-item-size-2" %} {% endif %} @@ -304,7 +312,7 @@ {% endif %} -
+
{% endfor %}