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:
parent
be3a162a8a
commit
beb606c6ca
1 changed files with 6 additions and 0 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue