fix(electron): drag window behavior in header

This commit is contained in:
himself65
2023-04-27 23:18:00 -05:00
parent 3a5a66a5a3
commit 9f8b38f9f3
9 changed files with 30 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ export const StyledIconButton = styled('button', {
width,
height,
fontSize,
WebkitAppRegion: 'no-drag',
color: 'var(--affine-icon-color)',
...displayInlineFlex('center', 'center'),
position: 'relative',
@@ -184,6 +185,7 @@ export const StyledButton = styled('button', {
paddingLeft: padding,
paddingRight: padding,
border: noBorder ? 'none' : '1px solid',
WebkitAppRegion: 'no-drag',
...displayInlineFlex('center', 'center'),
position: 'relative',
// TODO: disabled color is not decided