-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppTile adjustments #2424
AppTile adjustments #2424
Conversation
variant === "compact" | ||
? APP_TILE_COMPACT_IMAGE_HEIGHT | ||
: APP_TILE_IMAGE_HEIGHT, | ||
width: variant === "compact" ? "100%" : "auto", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we are setting a height
on these images, we probably should not set a width
. It can skew the images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens in the event someone uses an img that is much wider than it is tall? Will it overflow the container?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's hard to tell with these types of placeholder images. Have you tried it with more realistic images? My hunch is we get some interesting results. Mainly that the image would be very skewed in the 'wide' case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But, I could be wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR fixes a height issue with
AppTile
and adds the newcompact
variant required by End User Dashboard.