style tweaks & fixes for larger screens
This commit is contained in:
parent
b3ead75772
commit
b1a60e4e9d
1 changed files with 23 additions and 23 deletions
|
@ -125,32 +125,12 @@ function OutfitPreview({ outfitState, dispatchToOutfit }) {
|
||||||
</FullScreenCenter>
|
</FullScreenCenter>
|
||||||
</Delay>
|
</Delay>
|
||||||
)}
|
)}
|
||||||
<Box pos="absolute" left="2" top="2">
|
|
||||||
<IconButton
|
|
||||||
icon="arrow-back"
|
|
||||||
aria-label="Leave this outfit"
|
|
||||||
variant="unstyled"
|
|
||||||
d="flex"
|
|
||||||
alignItems="center"
|
|
||||||
justifyContent="center"
|
|
||||||
color="gray.50"
|
|
||||||
opacity={hasFocus ? 1 : 0}
|
|
||||||
transition="all 0.2s"
|
|
||||||
_groupHover={{
|
|
||||||
opacity: 1,
|
|
||||||
}}
|
|
||||||
onFocus={() => setHasFocus(true)}
|
|
||||||
onBlur={() => setHasFocus(false)}
|
|
||||||
onClick={() => setShowResetModal(true)}
|
|
||||||
/>
|
|
||||||
</Box>
|
|
||||||
<Box
|
<Box
|
||||||
// Bottom toolbar on small screens, top on large screens
|
// Bottom toolbar on small screens, top on large screens
|
||||||
pos="absolute"
|
pos="absolute"
|
||||||
left="2"
|
left={{ base: 2, lg: 6 }}
|
||||||
right="2"
|
right={{ base: 2, lg: 6 }}
|
||||||
bottom={{ base: "2", lg: "auto" }}
|
bottom={{ base: 2, lg: 6 }}
|
||||||
top={{ base: "auto", lg: "2" }}
|
|
||||||
// Grid layout for the content!
|
// Grid layout for the content!
|
||||||
display="grid"
|
display="grid"
|
||||||
gridTemplateAreas={`"space picker download"`}
|
gridTemplateAreas={`"space picker download"`}
|
||||||
|
@ -212,6 +192,26 @@ function OutfitPreview({ outfitState, dispatchToOutfit }) {
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Box>
|
</Box>
|
||||||
|
<Box pos="absolute" left="3" top="3">
|
||||||
|
<IconButton
|
||||||
|
icon="arrow-back"
|
||||||
|
aria-label="Leave this outfit"
|
||||||
|
variant="unstyled"
|
||||||
|
isRound={true}
|
||||||
|
d="flex"
|
||||||
|
alignItems="center"
|
||||||
|
justifyContent="center"
|
||||||
|
color="gray.50"
|
||||||
|
opacity={hasFocus ? 1 : 0}
|
||||||
|
transition="all 0.2s"
|
||||||
|
_groupHover={{
|
||||||
|
opacity: 1,
|
||||||
|
}}
|
||||||
|
onFocus={() => setHasFocus(true)}
|
||||||
|
onBlur={() => setHasFocus(false)}
|
||||||
|
onClick={() => setShowResetModal(true)}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
<OutfitResetModal
|
<OutfitResetModal
|
||||||
isOpen={showResetModal}
|
isOpen={showResetModal}
|
||||||
onClose={() => setShowResetModal(false)}
|
onClose={() => setShowResetModal(false)}
|
||||||
|
|
Loading…
Reference in a new issue