mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): add board image count badge
This commit is contained in:
parent
fe10a9f747
commit
daadf6ebfd
@ -6,6 +6,7 @@ import {
|
|||||||
Flex,
|
Flex,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
MenuList,
|
MenuList,
|
||||||
|
Text,
|
||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
|
|
||||||
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
|
||||||
@ -162,6 +163,22 @@ const HoverableBoard = memo(({ board, isSelected }: HoverableBoardProps) => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Editable>
|
</Editable>
|
||||||
|
<Flex
|
||||||
|
sx={{
|
||||||
|
justifyContent: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
|
pos: 'absolute',
|
||||||
|
color: 'base.900',
|
||||||
|
bg: 'accent.300',
|
||||||
|
borderRadius: 'full',
|
||||||
|
w: 4,
|
||||||
|
h: 4,
|
||||||
|
right: -1,
|
||||||
|
top: -1,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Text fontSize="2xs">{board.image_count}</Text>
|
||||||
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
)}
|
)}
|
||||||
</ContextMenu>
|
</ContextMenu>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user