Skip to content

Commit 5bc5b4b

Browse files
committed
style: style welcome pannel
1 parent 9446e6e commit 5bc5b4b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/components/ui/tour/WelcomePanel.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const WelcomePanel: React.FC<WelcomePanelProps> = ({
2525
return (
2626
<div className='fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50'>
2727
<div
28-
className={`bg-white rounded-lg shadow-xl max-w-md w-full transform transition-all duration-300 ${
28+
className={`bg-white rounded-lg shadow-xl max-w-md w-full transform transition-all duration-300 max-h-[90vh] flex flex-col ${
2929
visible ? 'translate-y-0 opacity-100' : 'translate-y-4 opacity-0'
3030
}`}
3131
>
@@ -43,8 +43,8 @@ const WelcomePanel: React.FC<WelcomePanelProps> = ({
4343
</button>
4444
</div>
4545

46-
{/* Content */}
47-
<div className='p-5'>
46+
{/* Content - scrollable */}
47+
<div className='flex-1 overflow-y-auto p-5'>
4848
<p className='text-gray-700 mb-4'>
4949
{helpContent.welcome.description}
5050
</p>
@@ -55,22 +55,22 @@ const WelcomePanel: React.FC<WelcomePanelProps> = ({
5555
<li key={index}>{benefit}</li>
5656
))}
5757
</ul>
58+
</div>
5859

59-
{/* Buttons */}
60-
<div className='flex flex-col sm:flex-row gap-3 mt-6'>
61-
<Button variant='default' className='flex-1' onClick={onClose}>
62-
Get Started
63-
<ArrowRight className='w-4 h-4 ml-2' />
64-
</Button>
65-
<Button
66-
variant='outline'
67-
className='flex-1'
68-
onClick={onShowTutorial}
69-
>
70-
Show Tutorial
71-
<PlayCircle className='w-4 h-4 ml-2' />
72-
</Button>
73-
</div>
60+
{/* Footer */}
61+
<div className='border-t p-4 flex flex-row gap-3'>
62+
<Button variant='default' className='flex-1' onClick={onClose}>
63+
Get Started
64+
<ArrowRight className='w-4 h-4 ml-2' />
65+
</Button>
66+
<Button
67+
variant='outline'
68+
className='flex-1'
69+
onClick={onShowTutorial}
70+
>
71+
Show Tutorial
72+
<PlayCircle className='w-4 h-4 ml-2' />
73+
</Button>
7474
</div>
7575
</div>
7676
</div>

0 commit comments

Comments
 (0)