Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Image has no maxWidth constraint #514

Open
jessemartin opened this issue Aug 23, 2018 · 1 comment
Open

Image has no maxWidth constraint #514

jessemartin opened this issue Aug 23, 2018 · 1 comment

Comments

@jessemartin
Copy link
Contributor

jessemartin commented Aug 23, 2018

Images should be constrainable by maxWidth.

A possible implementation could use a responsiveLayout enum Image prop:

enum ResponsiveLayout {
  MAX_WIDTH = "MAX_WIDTH", // image will be rendered at native size and scaled down to 100% width if necessary 
  FULL_WIDTH = "FULL_WIDTH", // image will be stretched to 100% width
}
interface ImageProps {
  responsiveLayout?: ResponsiveLayout;
  ...
}
@jessemartin
Copy link
Contributor Author

@swese44 Here's an issue to track what we talked about earlier.

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

No branches or pull requests

1 participant