From: Mark Wooding Date: Thu, 23 Dec 2021 21:59:36 +0000 (+0000) Subject: static/tgal.css: Use flex layout for folder galleries. X-Git-Url: https://git.distorted.org.uk/~mdw/tgal/commitdiff_plain/8dc1dc0f7a48f3d18eddfa5281680e472ff53427?hp=152ba8ecea93b9bbcd7ef542844bef7f7a188660 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. --- 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 {