Skip to content

Add srcset support to externalLinkList thumbnails#2404

Merged
tf merged 1 commit intocodevise:masterfrom
tf:large-teaser-thumbnail-variant
Apr 23, 2026
Merged

Add srcset support to externalLinkList thumbnails#2404
tf merged 1 commit intocodevise:masterfrom
tf:large-teaser-thumbnail-variant

Conversation

@tf
Copy link
Copy Markdown
Member

@tf tf commented Apr 23, 2026

At larger link widths - especially xxl in full-width sections - a single thumbnail can span well over 1024 CSS pixels, making the previously used linkThumbnailLarge (394) or medium (1024) variants blurry on high-DPI displays. Emit an srcset ramp keyed on linkWidth:

xs, s -> linkThumbnailLarge (unchanged, small pre-cropped asset)
m, l -> medium + large
xl,xxl -> medium + large + ultra

With the image_srcset feature flag disabled, falls back to the previous single-variant behavior.

At larger link widths - especially xxl in full-width sections - a
single thumbnail can span well over 1024 CSS pixels, making the
previously used linkThumbnailLarge (394) or medium (1024) variants
blurry on high-DPI displays. Emit an srcset ramp keyed on linkWidth:

  xs, s  -> linkThumbnailLarge (unchanged, small pre-cropped asset)
  m, l   -> medium + large
  xl,xxl -> medium + large + ultra

With the image_srcset feature flag disabled, falls back to the
previous single-variant behavior.
@tf tf added this to the v17.2 milestone Apr 23, 2026
@tf tf merged commit 3176511 into codevise:master Apr 23, 2026
18 checks passed
@tf tf deleted the large-teaser-thumbnail-variant branch April 23, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant