From d00d0bd951e746b0b699648fd1b01cb2e4f9f083 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Tue, 6 Jun 2023 11:12:00 +0800 Subject: [PATCH] fix: the top padding should be draggable (#2688) --- .../component/src/components/workspace/index.css.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/component/src/components/workspace/index.css.ts b/packages/component/src/components/workspace/index.css.ts index e4244a9c68..3143eed84c 100644 --- a/packages/component/src/components/workspace/index.css.ts +++ b/packages/component/src/components/workspace/index.css.ts @@ -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',