From 8dc1dc0f7a48f3d18eddfa5281680e472ff53427 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 23 Dec 2021 21:59:36 +0000 Subject: [PATCH] static/tgal.css: Use flex layout for folder galleries. Space the elements evenly in each row. Alas, it's hard to arrange for lines to be broken so that each row has about the same number of items, so that's a project for later. --- static/tgal.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/tgal.css b/static/tgal.css index 251541f..ca027f4 100644 --- a/static/tgal.css +++ b/static/tgal.css @@ -76,8 +76,8 @@ div.footitem { } div.gallery { - display: block; - text-align: center; + display: flex; flex-direction: row; flex-wrap: wrap; + align-items: start; justify-content: space-evenly; } figure.thumb { -- 2.11.0