The theme detail pages (/themes/<theme>/) render the screenshot with an inline w-3xl class while the parent container is max-w-2xl until the lg: breakpoint. Result: on every viewport between roughly 672px and 1023px wide, the screenshot extends past the right edge of its column.
Rendered HTML (example from any theme detail page, e.g. hugo-paper or the deploy preview at https://deploy-preview-706--hugothemes.netlify.app/themes/kavu/):
<div class="mx-auto pt-16 lg:pt-24 flex max-w-2xl lg:mt-0 lg:mr-0 lg:ml-18 lg:max-w-none lg:flex-none">
<picture>
...
<img class="w-3xl rounded-md shadow-2xl ring-1 ring-gray-900/10"
src="..." alt loading="eager" width="640" height="427">
</picture>
</div>
In Tailwind v4, w-3xl resolves to width: 48rem (768px). The parent's max-w-2xl is 42rem (672px). For viewports below lg (1024px), the parent is constrained but the child is forced to 768px, so the image hangs out 96px past the column.
Affects every theme; not specific to one screenshot or aspect ratio. More obvious on screenshots with true 3:2 dimensions because the rendered height is greater and the overflow region looks more substantial.
Possible fixes (any one):
- Replace
w-3xl with max-w-3xl w-full so the image scales down to fit narrower parents.
- Move the breakpoint earlier (e.g. apply
lg:max-w-none already at md).
- Drop the explicit width and rely on the
width=… HTML attribute plus w-full max-w-3xl.
Happy to send a PR if a maintainer points me at the source template.
The theme detail pages (
/themes/<theme>/) render the screenshot with an inlinew-3xlclass while the parent container ismax-w-2xluntil thelg:breakpoint. Result: on every viewport between roughly 672px and 1023px wide, the screenshot extends past the right edge of its column.Rendered HTML (example from any theme detail page, e.g. hugo-paper or the deploy preview at https://deploy-preview-706--hugothemes.netlify.app/themes/kavu/):
In Tailwind v4,
w-3xlresolves towidth: 48rem(768px). The parent'smax-w-2xlis42rem(672px). For viewports belowlg(1024px), the parent is constrained but the child is forced to 768px, so the image hangs out 96px past the column.Affects every theme; not specific to one screenshot or aspect ratio. More obvious on screenshots with true 3:2 dimensions because the rendered height is greater and the overflow region looks more substantial.
Possible fixes (any one):
w-3xlwithmax-w-3xl w-fullso the image scales down to fit narrower parents.lg:max-w-nonealready atmd).width=…HTML attribute plusw-full max-w-3xl.Happy to send a PR if a maintainer points me at the source template.