From 99a7e9ab02ae1980874be35f6a2651ca4bfdb951 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Fri, 6 Oct 2023 18:30:34 +0200 Subject: feat: Simplify mosaic The old implementation was not good and would render the list on mobile in the wrong order --- templates/mosaic.qtpl | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) (limited to 'templates/mosaic.qtpl') diff --git a/templates/mosaic.qtpl b/templates/mosaic.qtpl index 21a8bae..9e941b6 100644 --- a/templates/mosaic.qtpl +++ b/templates/mosaic.qtpl @@ -1,26 +1,13 @@ {% import "git.sr.ht/~gabrielgio/img/pkg/database/repository" %} -{% import "git.sr.ht/~gabrielgio/img/pkg/list" %} {% func Mosaic(medias []*repository.Media, preloadAttr string) %} -
-{% for _, c := range list.Distribuite(medias, 6) %} -
- {% for _, media := range c %} - - {% endfor %} -
+
+{% for _, media := range medias %} + +
+ +
+
{% endfor %}
{% endfunc %} -- cgit v1.2.3