mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
fix bug where onboarding does not appear on mobile. make step 1 fit more nicely on smaller screens.
This commit is contained in:
1 parent
8c95f7c0b5
commit
509a088b84
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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user