opti: topbar style

This commit is contained in:
mitsuhatu
2022-07-28 17:58:25 +08:00
parent 66488d1ec8
commit d18a07727c
7 changed files with 77 additions and 42 deletions
@@ -24,7 +24,7 @@ const IconWrapper = styled('div')<Pick<StatusIconProps, 'mode'>>(
color: theme.affine.palette.primary,
cursor: 'pointer',
backgroundColor: theme.affine.palette.white,
transform: `translateX(${mode === DocMode.doc ? 0 : 33}px)`,
transform: `translateX(${mode === DocMode.doc ? 0 : 20}px)`,
transition: 'transform 300ms ease',
'& > svg': {
@@ -21,7 +21,7 @@ const Container = styled('div')(({ theme }) => {
backgroundColor: theme.affine.palette.textHover,
borderRadius: '5px',
height: '30px',
width: '63px',
width: '50px',
cursor: 'pointer',
padding: '5px',
};