fix visual regressions on Your Outfits page
Oops, when refactoring and adding alt text, I didn't realize the padding for the text would affect the images too! And I forgot to add `overflow: hidden` to round the image's corners. Fixed!
This commit is contained in:
parent
2a8be58973
commit
9ae1704908
1 changed files with 7 additions and 1 deletions
|
@ -114,12 +114,17 @@ function OutfitCard({ outfit }) {
|
||||||
// to load on a new device, and the flash of text is unhelpful.
|
// to load on a new device, and the flash of text is unhelpful.
|
||||||
color="white"
|
color="white"
|
||||||
fontSize="xs"
|
fontSize="xs"
|
||||||
padding="2"
|
width={150}
|
||||||
|
height={150}
|
||||||
overflow="auto"
|
overflow="auto"
|
||||||
className={css`
|
className={css`
|
||||||
&:-moz-loading {
|
&:-moz-loading {
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:-moz-broken {
|
||||||
|
padding: 0.5rem;
|
||||||
|
}
|
||||||
`}
|
`}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -165,6 +170,7 @@ function OutfitCardLayout({ image, caption }) {
|
||||||
marginBottom="2"
|
marginBottom="2"
|
||||||
borderRadius="md"
|
borderRadius="md"
|
||||||
background="gray.600"
|
background="gray.600"
|
||||||
|
overflow="hidden"
|
||||||
>
|
>
|
||||||
{image}
|
{image}
|
||||||
</Box>
|
</Box>
|
||||||
|
|
Loading…
Reference in a new issue