fix: width of new page button (#2258)

This commit is contained in:
Fangdun Tsai
2023-05-08 14:06:00 +08:00
committed by GitHub
parent d408a8bbb1
commit a942add87a

View File

@@ -39,13 +39,14 @@ export const StyledLink = styled(Link)(() => {
}); });
export const StyledNewPageButton = styled('button')(() => { export const StyledNewPageButton = styled('button')(() => {
return { return {
width: '100%',
height: '52px', height: '52px',
...displayFlex('flex-start', 'center'), ...displayFlex('flex-start', 'center'),
padding: '0 8px 0 16px', padding: '0 16px',
svg: { svg: {
fontSize: '20px', fontSize: '20px',
color: 'var(--affine-icon-color)', color: 'var(--affine-icon-color)',
marginRight: '8px', marginRight: '12px',
}, },
':hover': { ':hover': {
color: 'var(--affine-primary-color)', color: 'var(--affine-primary-color)',