1
0
Fork 0

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:
Emi Matchu 2021-01-08 01:26:05 -08:00
parent 2a8be58973
commit 9ae1704908

View file

@ -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>