mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00: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;
|
||||
|
||||
return (
|
||||
<div key={id} style={{ cursor: 'pointer' }}>
|
||||
<StyledCardContainer key={id}>
|
||||
<CardItemPanelWrapper
|
||||
item={item}
|
||||
active={activeId === id}
|
||||
>
|
||||
<CardItem id={id} block={block} />
|
||||
</CardItemPanelWrapper>
|
||||
</div>
|
||||
</StyledCardContainer>
|
||||
);
|
||||
})}
|
||||
<AddCard group={group} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
const StyledCardContainer = styled('div')`
|
||||
cursor: pointer;
|
||||
&:focus-within {
|
||||
z-index: 1;
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user