refactor: change pendant popover trigger to click

This commit is contained in:
QiShaoXuan 2022-08-11 12:19:36 +08:00
parent 14d7085ec3
commit 4dd76949c4
2 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,9 @@ export const CardContext = (props: Props) => {
const StyledCardContainer = styled('div')`
cursor: pointer;
&:hover {
z-index: 1;
}
&:focus-within {
z-index: 1;
}

View File

@ -105,6 +105,8 @@ export const PendantRender = ({ block }: { block: AsyncBlock }) => {
<AddPendantPopover
block={block}
iconStyle={{ marginTop: 4 }}
trigger="click"
// trigger={isKanbanView ? 'hover' : 'click'}
container={blockRenderContainerRef.current}
/>
</div>