summaryrefslogtreecommitdiff
path: root/CLAUDE.md
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-18 16:27:27 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-18 16:27:27 +0100
commit28fc6070e258b0318e3897e61cd1079f565e2742 (patch)
tree968dc7d19ae051c3d35e592c2012dbb49f6a944e /CLAUDE.md
parent150ae5fc5dc2275ea54d6490fcc41a4a847c6d64 (diff)
downloadfisheye-master.tar.gz
fisheye-master.tar.bz2
fisheye-master.zip
Update CLAUDE.md: document auto_flow image sizing fixHEADmaster
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 <noreply@anthropic.com>
Diffstat (limited to 'CLAUDE.md')
-rw-r--r--CLAUDE.md16
1 files changed, 16 insertions, 0 deletions
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 `<img class="thumb">` 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