fix image gallery not showing on posts
19 unmodified lines202122232425262728242526272824 unmodified lines19 unmodified lines {@const _images = embed.images.flatMap((img) => isBlob(img.image) ? [{ ...img, image: img.image }] : [] )} {@const images = _images.map((i): GalleryItem => { const sizeFactor = 200; const size = { width: (i.aspectRatio?.width ?? 4) * sizeFactor, height: (i.aspectRatio?.height ?? 3) * sizeFactor }; const size = i.aspectRatio ?? { width: 400, height: 300 }; const cid = i.image.ref.$link; return { ...size, src: img('feed_fullsize', did, cid),24 unmodified lines99 unmodified lines10010110210310410410510610716 unmodified lines12412512612712912812913013168 unmodified lines99 unmodified lines display: grid; gap: 2px; border-radius: 4px; overflow: hidden; width: fit-content; }
.gallery.styling-twitter > a { width: 100%;16 unmodified lines */ .gallery.styling-twitter[data-total='1'] { display: block; /* Remove grid constraints */ height: auto; width: fit-content; aspect-ratio: auto; /* Remove 16:9 ratio */ border-radius: 0; }
68 unmodified lines