Reader: wider card images with configurable width #30

Manually merged
marvin8 merged 2 commits from feat/issue-22-wider-card-images into main 2026-09-12 20:04:42 +00:00
Collaborator

Card images previously rendered as a fixed 100x100 square using a fraction of the card width. They now span the card via a --aggregate-image-width variable (default 100%, 3/2 aspect ratio, max-height cap with object-fit: cover), and a new Card image width display setting (same validation as base font size: px|rem|%, empty = default) emits a :root override from base.html.

Before/after screenshots attached below.

Closes #22

Card images previously rendered as a fixed 100x100 square using a fraction of the card width. They now span the card via a `--aggregate-image-width` variable (default `100%`, `3/2` aspect ratio, `max-height` cap with `object-fit: cover`), and a new **Card image width** display setting (same validation as base font size: `px|rem|%`, empty = default) emits a `:root` override from `base.html`. Before/after screenshots attached below. Closes #22
Add card image width display setting
All checks were successful
/ gitleaks (pull_request) Successful in 22s
/ checks (pull_request) Successful in 2m0s
/ pr-review (pull_request) Successful in 2m59s
2c5156a1c6
Author
Collaborator

Before (fixed 100px square):

before

After (default 100% width, 3/2 aspect):

after

Any width can be dialled in via Settings → Display → Card image width (e.g. 50%, 220px).

**Before** (fixed 100px square): ![before](https://forge.marvin8.zone/attachments/425efd0a-b079-47f2-b1e1-1d1a99517000) **After** (default 100% width, 3/2 aspect): ![after](https://forge.marvin8.zone/attachments/82f5fa28-ee34-4015-8150-de8b8cb76fe8) Any width can be dialled in via Settings → Display → Card image width (e.g. `50%`, `220px`).
marvin8 approved these changes 2026-09-12 20:02:56 +00:00
marvin8 manually merged commit 2c0e562f33 into main 2026-09-12 20:04:42 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
marvin8/yunjin!30
No description provided.