Skip to content

Commit

Permalink
fix: fix welcome window (#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
lily-de authored Jan 23, 2025
1 parent c4d302a commit 8f41ff0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions ui/desktop/src/components/welcome_screen/WelcomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@ interface WelcomeScreenProps {

export function WelcomeScreen({ onSubmit }: WelcomeScreenProps) {
return (
<div
className="h-screen w-full select-none"
style={{ WebkitAppRegion: 'drag' as React.CSSProperties }}
>
{/* Add draggable title bar region */}
<div className="h-[36px] w-full bg-transparent window-drag" />
<div className="h-screen w-full select-none">
{/* Draggable title bar region */}
<div className="h-[36px] w-full bg-transparent" style={{ WebkitAppRegion: 'drag' }} />

<div className="h-[calc(100vh-36px)] w-full bg-white dark:bg-gray-800 overflow-hidden p-2 pt-0">
{/* Content area - explicitly set as non-draggable */}
<div
className="h-[calc(100vh-36px)] w-full bg-white dark:bg-gray-800 overflow-hidden p-2 pt-0"
style={{ WebkitAppRegion: 'no-drag' }}
>
<ScrollArea className="h-full w-full">
<div className="flex min-h-full">
{/* Content Area */}
Expand Down

0 comments on commit 8f41ff0

Please sign in to comment.