mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-20 11:21:55 +03:00
refactor: change pendant popover trigger to click
This commit is contained in:
parent
14d7085ec3
commit
4dd76949c4
libs/components
editor-blocks/src/blocks/group/scene-kanban
editor-core/src/block-pendant/pendant-render
@ -60,6 +60,9 @@ export const CardContext = (props: Props) => {
|
||||
|
||||
const StyledCardContainer = styled('div')`
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
z-index: 1;
|
||||
}
|
||||
&:focus-within {
|
||||
z-index: 1;
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user