fix: setting entry only show when hover on workspace card (#1515)

This commit is contained in:
Qi authored and GitHub committed 2023-03-10 18:07:30 +08:00
1 parent a3ed8f6774
commit 9043081b8d
2 files changed
+8

No files matched your search

@@ -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,
},