Skip to content

Conversation

evrial
Copy link

@evrial evrial commented May 25, 2025

img and video should not exceed viewport size.

@evrial evrial requested a review from a team as a code owner May 25, 2025 12:23
@philipp-spiess
Copy link
Member

Hey! Thanks for the suggestion but this seems like an app-specific concern that we better not change in preflight (let alone the fact that this would require a major change since it probably breaks a lot of images). Feel free to do this in your own CSS if you need it:

@layer base {
  img {
    max-width: 100vw;
    max-height: 100vh;
  }
}

@evrial
Copy link
Author

evrial commented May 26, 2025

Ok, yes you're right, thanks for feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants