fix padding for item and adjacent containers
This commit is contained in:
parent
047dbb6327
commit
7ecbaf82c2
3 changed files with 14 additions and 9 deletions
|
@ -114,8 +114,7 @@ function ItemContainer({ children }) {
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
p="1"
|
p="1"
|
||||||
mb="1"
|
my="1"
|
||||||
mt="1"
|
|
||||||
rounded="lg"
|
rounded="lg"
|
||||||
d="flex"
|
d="flex"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
|
|
|
@ -22,16 +22,20 @@ function ItemsPanel({ outfitState, loading, dispatchToOutfit }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box color="green.800">
|
<Box color="green.800">
|
||||||
|
<Box px="1">
|
||||||
<OutfitHeading
|
<OutfitHeading
|
||||||
outfitState={outfitState}
|
outfitState={outfitState}
|
||||||
dispatchToOutfit={dispatchToOutfit}
|
dispatchToOutfit={dispatchToOutfit}
|
||||||
/>
|
/>
|
||||||
|
</Box>
|
||||||
<Flex direction="column">
|
<Flex direction="column">
|
||||||
{loading &&
|
{loading &&
|
||||||
[1, 2, 3].map((i) => (
|
[1, 2, 3].map((i) => (
|
||||||
<Box key={i} mb="10">
|
<Box key={i} mb="10">
|
||||||
<Delay>
|
<Delay>
|
||||||
|
<Box px="1">
|
||||||
<Skeleton height="2.3rem" width="12rem" />
|
<Skeleton height="2.3rem" width="12rem" />
|
||||||
|
</Box>
|
||||||
<ItemListSkeleton count={3} />
|
<ItemListSkeleton count={3} />
|
||||||
</Delay>
|
</Delay>
|
||||||
</Box>
|
</Box>
|
||||||
|
@ -48,7 +52,9 @@ function ItemsPanel({ outfitState, loading, dispatchToOutfit }) {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box mb="10">
|
<Box mb="10">
|
||||||
|
<Box px="1">
|
||||||
<Heading2>{zoneLabel}</Heading2>
|
<Heading2>{zoneLabel}</Heading2>
|
||||||
|
</Box>
|
||||||
<ItemRadioList
|
<ItemRadioList
|
||||||
name={zoneLabel}
|
name={zoneLabel}
|
||||||
items={items}
|
items={items}
|
||||||
|
|
|
@ -83,7 +83,7 @@ function WardrobePage() {
|
||||||
key="search-panel"
|
key="search-panel"
|
||||||
ref={searchContainerRef}
|
ref={searchContainerRef}
|
||||||
>
|
>
|
||||||
<Box px="5" py="5">
|
<Box px="4" py="5">
|
||||||
<SearchPanel
|
<SearchPanel
|
||||||
query={searchQuery}
|
query={searchQuery}
|
||||||
outfitState={outfitState}
|
outfitState={outfitState}
|
||||||
|
|
Loading…
Reference in a new issue