fix(ui): autoadd badge hides when editing name

This commit is contained in:
psychedelicious 2024-07-09 22:39:17 +10:00
parent 6014382c7b
commit 80e1b87b9e

View File

@ -146,7 +146,7 @@ const GalleryBoard = ({ board, isSelected, setBoardToDelete }: GalleryBoardProps
/> />
<EditableInput sx={editableInputStyles} /> <EditableInput sx={editableInputStyles} />
</Editable> </Editable>
{autoAddBoardId === board.board_id && <AutoAddBadge />} {autoAddBoardId === board.board_id && !editingDisclosure.isOpen && <AutoAddBadge />}
{board.archived && !editingDisclosure.isOpen && ( {board.archived && !editingDisclosure.isOpen && (
<Icon <Icon
as={PiArchiveBold} as={PiArchiveBold}
@ -154,7 +154,7 @@ const GalleryBoard = ({ board, isSelected, setBoardToDelete }: GalleryBoardProps
filter="drop-shadow(0px 0px 0.1rem var(--invoke-colors-base-800))" filter="drop-shadow(0px 0px 0.1rem var(--invoke-colors-base-800))"
/> />
)} )}
<Text variant="subtext">{board.image_count}</Text> {!editingDisclosure.isOpen && <Text variant="subtext">{board.image_count}</Text>}
<IAIDroppable data={droppableData} dropLabel={<Text fontSize="md">{t('unifiedCanvas.move')}</Text>} /> <IAIDroppable data={droppableData} dropLabel={<Text fontSize="md">{t('unifiedCanvas.move')}</Text>} />
</Flex> </Flex>