From 839f9e46680222e2af546759a3a0ca06d12475d7 Mon Sep 17 00:00:00 2001 From: Matt Dunn-Rankin Date: Tue, 28 Apr 2020 01:14:07 -0700 Subject: [PATCH] move outfit preview buttons to top --- src/app/OutfitPreview.js | 158 ++++++++++++++++++---------------- src/app/SpeciesColorPicker.js | 4 +- 2 files changed, 87 insertions(+), 75 deletions(-) diff --git a/src/app/OutfitPreview.js b/src/app/OutfitPreview.js index 6815953..588d353 100644 --- a/src/app/OutfitPreview.js +++ b/src/app/OutfitPreview.js @@ -142,67 +142,46 @@ function OutfitPreview({ outfitState, dispatchToOutfit }) { )} - - - + setHasFocus(true)} onBlur={() => setHasFocus(false)} + onClick={() => setShowResetModal(true)} /> - - - - - setHasFocus(true)} - onBlur={() => setHasFocus(false)} - variant="unstyled" - backgroundColor="gray.600" - color="gray.50" - boxShadow="md" - d="flex" - alignItems="center" - justifyContent="center" - opacity={hasFocus ? 1 : 0} - transition="all 0.2s" - _groupHover={{ - opacity: 1, - }} - _focus={{ - opacity: 1, - backgroundColor: "gray.500", - }} - _hover={{ - backgroundColor: "gray.500", - }} - outline="initial" - /> - - + + + + + setHasFocus(true)} + onBlur={() => setHasFocus(false)} + variant="unstyled" + backgroundColor="gray.600" + color="gray.50" + boxShadow="md" + d="flex" + alignItems="center" + justifyContent="center" + opacity={hasFocus ? 1 : 0} + transition="all 0.2s" + _groupHover={{ + opacity: 1, + }} + _focus={{ + opacity: 1, + backgroundColor: "gray.500", + }} + _hover={{ + backgroundColor: "gray.500", + }} + outline="initial" + /> + + - - - + setHasFocus(true)} - onBlur={() => setHasFocus(false)} - onClick={() => setShowResetModal(true)} - /> + _groupHover={{ opacity: 1 }} + transition="opacity 0.2s" + display="flex" + justifyContent="center" + > + setHasFocus(true)} + onBlur={() => setHasFocus(false)} + /> + @@ -129,7 +130,7 @@ function SpeciesColorPicker({ ))} - +