put edit button back in the layout flow!
This commit is contained in:
parent
800cccf61c
commit
a3778d0467
1 changed files with 2 additions and 4 deletions
|
@ -146,13 +146,13 @@ function OutfitHeading({ outfitState, dispatchToOutfit }) {
|
|||
}
|
||||
>
|
||||
{({ isEditing, onRequestEdit }) => (
|
||||
<>
|
||||
<Flex align="flex-top">
|
||||
<EditablePreview />
|
||||
<EditableInput />
|
||||
{!isEditing && (
|
||||
<OutfitNameEditButton onRequestEdit={onRequestEdit} />
|
||||
)}
|
||||
</>
|
||||
</Flex>
|
||||
)}
|
||||
</Editable>
|
||||
</Heading1>
|
||||
|
@ -164,12 +164,10 @@ function OutfitHeading({ outfitState, dispatchToOutfit }) {
|
|||
function OutfitNameEditButton({ onRequestEdit }) {
|
||||
return (
|
||||
<PseudoBox
|
||||
d="inline-block"
|
||||
opacity="0"
|
||||
transition="opacity 0.5s"
|
||||
_groupHover={{ opacity: "1" }}
|
||||
onClick={onRequestEdit}
|
||||
position="absolute"
|
||||
>
|
||||
<IconButton
|
||||
icon="edit"
|
||||
|
|
Loading…
Reference in a new issue