diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-18 16:27:27 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-18 16:27:27 +0100 |
| commit | 28fc6070e258b0318e3897e61cd1079f565e2742 (patch) | |
| tree | 968dc7d19ae051c3d35e592c2012dbb49f6a944e /CLAUDE.md | |
| parent | 150ae5fc5dc2275ea54d6490fcc41a4a847c6d64 (diff) | |
| download | fisheye-28fc6070e258b0318e3897e61cd1079f565e2742.tar.gz fisheye-28fc6070e258b0318e3897e61cd1079f565e2742.tar.bz2 fisheye-28fc6070e258b0318e3897e61cd1079f565e2742.zip | |
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.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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 |
