fix bug where onboarding does not appear on mobile. make step 1 fit more nicely on smaller screens.

This commit is contained in:
Chad Curtis committed 2025-07-28 09:35:19 +00:00
1 parent 95f3ebc1e0
commit 47e3bf8fe5
3 files changed
+16 -2

No files matched your search

@@ -100,7 +100,7 @@ export function OnboardingDialog({
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-4xl max-h-[85vh] overflow-y-auto p-0">
<DialogContent className="max-w-4xl max-h-[85vh] overflow-y-auto p-0 w-[95vw] md:w-full">
<div className="sticky top-0 bg-background border-b p-6 pb-4 z-10">
<DialogTitle className="sr-only">Getting Started Onboarding</DialogTitle>
<DialogDescription className="sr-only">Complete the onboarding process to get started with Shakespeare</DialogDescription>
+1 -1
View File
@@ -20,7 +20,7 @@ export function WelcomeStep({ onNext, onSkip }: WelcomeStepProps) {
</p>
</div>
<div className="grid md:grid-cols-3 gap-4 max-w-4xl mx-auto">
<div className="hidden md:grid md:grid-cols-3 gap-4 max-w-4xl mx-auto">
<Card className="text-center">
<CardHeader>
<div className="flex justify-center mb-2">
+14
View File
@@ -273,6 +273,20 @@ export default function Index() {
</div>
</div>
</div>
<OnboardingDialog
open={isOnboardingOpen}
onOpenChange={setIsOnboardingOpen}
currentStep={currentStep}
onNextStep={handleNextStep}
onPreviousStep={handlePreviousStep}
onComplete={handleCompleteOnboarding}
initialPrompt={storedPrompt}
onProjectCreated={(projectId) => {
console.log('Project created during onboarding:', projectId);
setStoredPrompt('');
}}
/>
</div>
);
}