Skip to content

Commit bacfa9c

Browse files
committed
ref(onboarding): Wrap section headings in Container for consistent height
1 parent bf83a61 commit bacfa9c

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

static/app/views/onboarding/scmProjectDetails.tsx

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as Sentry from '@sentry/react';
33

44
import {Button} from '@sentry/scraps/button';
55
import {Input} from '@sentry/scraps/input';
6-
import {Flex, Stack} from '@sentry/scraps/layout';
6+
import {Container, Flex, Stack} from '@sentry/scraps/layout';
77
import {Text} from '@sentry/scraps/text';
88

99
import {addErrorMessage} from 'sentry/actionCreators/indicator';
@@ -143,9 +143,11 @@ export function ScmProjectDetails({onComplete}: StepProps) {
143143
<Stack gap="sm">
144144
<Flex gap="md" align="center" justify="center">
145145
<IconProject size="md" variant="secondary" />
146-
<Text bold size="lg" density="comfortable">
147-
{t('Give your project a name')}
148-
</Text>
146+
<Container>
147+
<Text bold size="lg" density="comfortable">
148+
{t('Give your project a name')}
149+
</Text>
150+
</Container>
149151
</Flex>
150152
<Input
151153
type="text"
@@ -159,9 +161,11 @@ export function ScmProjectDetails({onComplete}: StepProps) {
159161
<Stack gap="sm">
160162
<Flex gap="md" align="center" justify="center">
161163
<IconGroup size="md" />
162-
<Text bold size="lg" density="comfortable">
163-
{t('Assign a team')}
164-
</Text>
164+
<Container>
165+
<Text bold size="lg" density="comfortable">
166+
{t('Assign a team')}
167+
</Text>
168+
</Container>
165169
</Flex>
166170
<TeamSelector
167171
allowCreate
@@ -178,13 +182,17 @@ export function ScmProjectDetails({onComplete}: StepProps) {
178182
<Stack gap="sm">
179183
<Flex gap="md" align="center" justify="center">
180184
<IconSiren size="md" />
181-
<Text bold size="lg" density="comfortable">
182-
{t('Alert frequency')}
183-
</Text>
185+
<Container>
186+
<Text bold size="lg" density="comfortable">
187+
{t('Alert frequency')}
188+
</Text>
189+
</Container>
184190
</Flex>
185-
<Text variant="muted" size="lg" density="comfortable" align="center">
186-
{t('Get notified when things go wrong')}
187-
</Text>
191+
<Container>
192+
<Text variant="muted" size="lg" density="comfortable" align="center">
193+
{t('Get notified when things go wrong')}
194+
</Text>
195+
</Container>
188196
<ScmAlertFrequency {...alertRuleConfig} onFieldChange={handleAlertChange} />
189197
</Stack>
190198
</Stack>

0 commit comments

Comments
 (0)