mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-06 08:50:50 +08:00
fix: popover obscured in kanban state, fixed #589
This commit is contained in:
@@ -43,17 +43,24 @@ export const CardContext = (props: Props) => {
|
|||||||
const { id, block } = item;
|
const { id, block } = item;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={id} style={{ cursor: 'pointer' }}>
|
<StyledCardContainer key={id}>
|
||||||
<CardItemPanelWrapper
|
<CardItemPanelWrapper
|
||||||
item={item}
|
item={item}
|
||||||
active={activeId === id}
|
active={activeId === id}
|
||||||
>
|
>
|
||||||
<CardItem id={id} block={block} />
|
<CardItem id={id} block={block} />
|
||||||
</CardItemPanelWrapper>
|
</CardItemPanelWrapper>
|
||||||
</div>
|
</StyledCardContainer>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
<AddCard group={group} />
|
<AddCard group={group} />
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const StyledCardContainer = styled('div')`
|
||||||
|
cursor: pointer;
|
||||||
|
&:focus-within {
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user