opti: 1.right panel trigger button cannot click#176;

This commit is contained in:
mitsuha
2022-08-10 16:36:24 +08:00
parent 90b5602eb8
commit 1a9a5d99fa
6 changed files with 64 additions and 35 deletions

View File

@@ -10,7 +10,6 @@ const StyledTabs = styled('div')(({ theme }) => {
display: 'flex',
fontSize: '12px',
fontWeight: '600',
color: theme.affine.palette.primary,
};
});
@@ -26,13 +25,18 @@ const StyledTabTitle = styled('div', {
padding-top: 4px;
border-top: 2px solid #ecf1fb;
position: relative;
cursor: pointer;
color: ${({ theme, isActive }) =>
isActive ? theme.affine.palette.primary : 'rgba(62, 111, 219, 0.6)'};
&::after {
content: '';
width: 0;
height: 2px;
background-color: ${({ isActive, theme }) =>
isActive ? theme.affine.palette.primary : ''};
isActive
? theme.affine.palette.primary
: 'rgba(62, 111, 219, 0.6)'};
position: absolute;
left: 100%;
top: -2px;