aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/features')
-rw-r--r--src/features/messages.js2
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