Skip to content

Commit eca79af

Browse files
committed
Added some padding around the Setup Your Dev callout on Task page
1 parent 58861a0 commit eca79af

File tree

1 file changed

+38
-36
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam._index

1 file changed

+38
-36
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam._index/route.tsx

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -391,43 +391,45 @@ function UserHasNoTasks() {
391391
const [open, setOpen] = useState(false);
392392

393393
return (
394-
<Callout
395-
variant="info"
396-
cta={
397-
<Button
398-
variant="tertiary/small"
399-
TrailingIcon={open ? ChevronUpIcon : ChevronDownIcon}
400-
onClick={() => setOpen((o) => !o)}
401-
>
402-
{open ? "Close" : "Setup your dev environment"}
403-
</Button>
404-
}
405-
>
406-
{open ? (
407-
<div>
408-
<Header2 spacing>Get setup in 3 minutes</Header2>
394+
<div className="px-2 pt-2">
395+
<Callout
396+
variant="info"
397+
cta={
398+
<Button
399+
variant="tertiary/small"
400+
TrailingIcon={open ? ChevronUpIcon : ChevronDownIcon}
401+
onClick={() => setOpen((o) => !o)}
402+
>
403+
{open ? "Close" : "Setup your dev environment"}
404+
</Button>
405+
}
406+
>
407+
{open ? (
408+
<div>
409+
<Header2 spacing>Get setup in 3 minutes</Header2>
409410

410-
<StepNumber stepNumber="1" title="Open up your project" className="mt-6" />
411-
<StepContentContainer>
412-
<Paragraph>You'll need to open a terminal at the root of your project.</Paragraph>
413-
</StepContentContainer>
414-
<StepNumber stepNumber="2" title="Run the CLI 'login' command" />
415-
<StepContentContainer>
416-
<TriggerLoginStepV3 />
417-
</StepContentContainer>
418-
<StepNumber stepNumber="3" title="Run the CLI 'dev' command" />
419-
<StepContentContainer>
420-
<TriggerDevStepV3 />
421-
</StepContentContainer>
422-
<StepNumber stepNumber="4" title="Waiting for tasks" displaySpinner />
423-
<StepContentContainer>
424-
<Paragraph>This page will automatically refresh.</Paragraph>
425-
</StepContentContainer>
426-
</div>
427-
) : (
428-
"Your DEV environment isn't setup yet."
429-
)}
430-
</Callout>
411+
<StepNumber stepNumber="1" title="Open up your project" className="mt-6" />
412+
<StepContentContainer>
413+
<Paragraph>You'll need to open a terminal at the root of your project.</Paragraph>
414+
</StepContentContainer>
415+
<StepNumber stepNumber="2" title="Run the CLI 'login' command" />
416+
<StepContentContainer>
417+
<TriggerLoginStepV3 />
418+
</StepContentContainer>
419+
<StepNumber stepNumber="3" title="Run the CLI 'dev' command" />
420+
<StepContentContainer>
421+
<TriggerDevStepV3 />
422+
</StepContentContainer>
423+
<StepNumber stepNumber="4" title="Waiting for tasks" displaySpinner />
424+
<StepContentContainer>
425+
<Paragraph>This page will automatically refresh.</Paragraph>
426+
</StepContentContainer>
427+
</div>
428+
) : (
429+
"Your DEV environment isn't setup yet."
430+
)}
431+
</Callout>
432+
</div>
431433
);
432434
}
433435

0 commit comments

Comments
 (0)