fix: the top padding should be draggable (#2688)

This commit is contained in:
Peng Xiao 2023-06-06 11:12:00 +08:00 committed by GitHub
parent 8f5cd13e78
commit d00d0bd951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
import type { ComplexStyleRule } from '@vanilla-extract/css';
import { globalStyle, style } from '@vanilla-extract/css';
import { breakpoints } from '../../styles/mui-theme';
@ -64,8 +65,17 @@ export const mainContainerStyle = style({
},
},
},
'&[data-is-desktop="true"]:before': {
content: '""',
position: 'absolute',
height: '8px',
width: '100%',
top: '-8px',
left: 0,
WebkitAppRegion: 'drag',
},
},
});
} as ComplexStyleRule);
export const toolStyle = style({
position: 'fixed',