diff options
| author | Adam Soltys <[email protected]> | 2026-10-04 09:08:44 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-04 09:08:44 -0700 |
| commit | 630b14ef0483ff49a17993a16556047dff80305c (patch) | |
| tree | 3234c2cbaf7802f480429b23189ae0211832a8c6 /src/features | |
| parent | d5db8bf6226f2fe06a65eed05e706c80dd0d904c (diff) | |
| download | coinosv3-630b14ef0483ff49a17993a16556047dff80305c.tar.gz coinosv3-630b14ef0483ff49a17993a16556047dff80305c.zip | |
Feed pictures: a height-capped one's frame narrows with it (no empty bands)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_011bvzKaZosXGHkigcGcSzAR
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/messages.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/features/messages.js b/src/features/messages.js index 09e4c95..0a0a536 100644 --- a/src/features/messages.js +++ b/src/features/messages.js @@ -6731,7 +6731,7 @@ export function messagesFeature(ctx) { src: mediaSrc(url, known), class: 'note-img clickable', loading: feedPaint || known ? 'eager' : 'lazy', alt: label || '', decoding: known && known.thumb ? 'sync' : undefined, // a few-ms decode: paint it with the page width: size?.width, height: size?.height, - style: size ? 'height:auto;aspect-ratio:' + size.width + '/' + size.height : undefined, + style: size ? 'height:auto;aspect-ratio:' + size.width + '/' + size.height + ';--ar:' + (size.width / size.height).toFixed(4) : undefined, onClick: (e) => { if (!onPicture(e)) return; e.stopPropagation(); ctx.openImage && ctx.openImage(url); }, // a picture we were TOLD was a picture and which won't load leaves // nothing behind — the alt text is already in the sentence above it |
