mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-09-22 00:49:36 +03:00
fix: setting entry only show when hover on workspace card (#1515)
This commit is contained in:
parent
a3ed8f6774
commit
9043081b8d
@ -98,6 +98,7 @@ export const WorkspaceCard: React.FC<WorkspaceCardProps> = ({
|
||||
)}
|
||||
</StyleWorkspaceInfo>
|
||||
<StyledSettingLink
|
||||
className="setting-entry"
|
||||
hoverBackground="#fff"
|
||||
onClick={e => {
|
||||
e.stopPropagation();
|
||||
|
@ -56,6 +56,10 @@ export const StyledCard = styled('div')<{
|
||||
borderColor: theme.colors.primaryColor,
|
||||
color: theme.colors.primaryColor,
|
||||
},
|
||||
'.setting-entry': {
|
||||
opacity: 1,
|
||||
pointerEvents: 'auto',
|
||||
},
|
||||
},
|
||||
};
|
||||
});
|
||||
@ -78,6 +82,9 @@ export const StyledSettingLink = styled(IconButton)(({ theme }) => {
|
||||
position: 'absolute',
|
||||
right: '6px',
|
||||
bottom: '6px',
|
||||
opacity: 0,
|
||||
pointerEvents: 'none',
|
||||
transition: 'all .15s',
|
||||
':hover': {
|
||||
background: theme.colors.pageBackground,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user