Oops, fix alignment in virtualized lists!

Forgot to top-align stuff! And then needed to add some padding to make sure the shadows show up.
This commit is contained in:
Emi Matchu 2021-06-19 12:52:16 -07:00
parent be3a162a8a
commit beb606c6ca

View file

@ -494,7 +494,13 @@ function ClosetItemList({ items, tradeMatchingMode }) {
key={key} key={key}
style={style} style={style}
spacing="4" spacing="4"
align="flex-top"
justify="center" justify="center"
// We need to provide some extra space up top, so that
// the virtualized row (which has overflow: hidden)
// doesn't cut off overflowing effects like trade match
// shadows.
paddingTop="2"
> >
{itemsForRow.map(renderItem)} {itemsForRow.map(renderItem)}
</HStack> </HStack>