You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I use enhanced:img with these 2 tailwind classes: row-span-3 and aspect-square, they're being ignored. If I use regular img it works as expected. Tried in both dev and prod - same issue.
This issue is directly related to <picture>, which is generated by enhanced:img. To solve the issue, remove class="row-span-3" from <enhanced:img /> and wrap it in a <div> with the class class="row-span-3" instead:
Is there a way to make the row-span work directly on <enhanced:img> without needing to wrap it in a <div>? If not, can this be improved in future updates to support CSS Grid properties better?
Describe the bug
Whenever I use
enhanced:img
with these 2 tailwind classes:row-span-3
andaspect-square
, they're being ignored. If I use regularimg
it works as expected. Tried in both dev and prod - same issue.Reproduction
I've made a reproduction on Stackblitz, but unfortunately Stackblitz doesn't work with
enhanced:img
for some reason. You can download it and try locally: https://stackblitz.com/edit/sveltejs-kit-template-default-4jhpwv?file=src%2Froutes%2F%2Bpage.svelteLogs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: