Skip to content

Commit b401bb6

Browse files
katinthehatsiteKateryna Kodonenko
andauthored
Ensure the topbar in the header can be dragged (#2232)
Co-authored-by: Kateryna Kodonenko <kateryna@automattic.com>
1 parent 42017ab commit b401bb6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎src/components/fullscreen-modal.tsx‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,13 @@ export const FullscreenModal: React.FC< FullscreenModalProps > = ( {
6363
role="dialog"
6464
aria-modal="true"
6565
>
66-
<HStack
67-
className={ cx( 'flex justify-end p-4 app-no-drag-region', isWindows() && 'ltr:pt-8' ) }
68-
>
69-
<Button icon={ close } onClick={ onClose } label={ __( 'Close' ) } />
66+
<HStack className={ cx( 'flex justify-end p-4 app-drag-region', isWindows() && 'ltr:pt-8' ) }>
67+
<Button
68+
icon={ close }
69+
onClick={ onClose }
70+
label={ __( 'Close' ) }
71+
className="app-no-drag-region"
72+
/>
7073
</HStack>
7174
<VStack alignment="top" className="w-full flex-1 overflow-y-auto px-6 pb-6">
7275
{ children }

0 commit comments

Comments
 (0)