mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 02:42:25 +08:00
refactor: change pendant popover trigger to click
This commit is contained in:
@@ -60,6 +60,9 @@ export const CardContext = (props: Props) => {
|
|||||||
|
|
||||||
const StyledCardContainer = styled('div')`
|
const StyledCardContainer = styled('div')`
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
&:hover {
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
&:focus-within {
|
&:focus-within {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,6 +105,8 @@ export const PendantRender = ({ block }: { block: AsyncBlock }) => {
|
|||||||
<AddPendantPopover
|
<AddPendantPopover
|
||||||
block={block}
|
block={block}
|
||||||
iconStyle={{ marginTop: 4 }}
|
iconStyle={{ marginTop: 4 }}
|
||||||
|
trigger="click"
|
||||||
|
// trigger={isKanbanView ? 'hover' : 'click'}
|
||||||
container={blockRenderContainerRef.current}
|
container={blockRenderContainerRef.current}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user