From 28fc6070e258b0318e3897e61cd1079f565e2742 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Thu, 18 Jun 2026 16:27:27 +0100 Subject: Update CLAUDE.md: document auto_flow image sizing fix Natural aspect ratio fix via .fisheye-flow img.thumb scoping; explains specificity reasoning and no-aspect-ratio constraint. Co-Authored-By: Claude Sonnet 4.6 --- CLAUDE.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 89b1cf8..d5c9a1e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -80,6 +80,22 @@ if (query) { **This patch must be re-applied after any pdfjs version upgrade.** +## auto_flow image sizing +`fisheye_auto_flow_inc.tpl` renders images as `` inside flex items. +Bootstrap and per-site CSS can impose `max-width` or fixed `height` on `.thumb`, which +breaks the layout for galleries with mixed portrait/landscape images (e.g. paintings). + +Fix in `themes/css/config.css` — scoped tightly to avoid collateral: +```css +.fisheye-flow img.thumb { + width: 100%; + height: auto; + max-width: none; +} +``` +The `.fisheye-flow` wrapper class (specificity 0,2,1) beats `a img.thumb` (0,1,2) from +per-site theme CSS. Do NOT set `aspect-ratio` — galleries mix landscape and portrait. + ## simple_list feature flags Optional columns gated on kernel_config features: - `fisheye_item_list_date` / `fisheye_item_list_creator` — Uploaded / by columns -- cgit v1.3