Skip to content

Commit 1be8f15

Browse files
committed
Move badges underneath header
This will work better on smaller screens. Also I had an extra useless Stack around the button.
1 parent 7e7cda5 commit 1be8f15

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

site/src/pages/DeploySettingsPage/OAuth2AppsSettingsPage/OAuth2AppsSettingsPageView.tsx

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,28 +42,27 @@ const OAuth2AppsSettingsPageView: FC<OAuth2AppsSettingsProps> = ({
4242
direction="row"
4343
justifyContent="space-between"
4444
>
45-
<Header
46-
title="OAuth2 Applications"
47-
description="Configure applications to use Coder as an OAuth2 provider."
48-
/>
49-
50-
<Badges>
51-
{isEntitled ? <EntitledBadge /> : <DisabledBadge />}
52-
<EnterpriseBadge />
53-
</Badges>
45+
<div>
46+
<Header
47+
title="OAuth2 Applications"
48+
description="Configure applications to use Coder as an OAuth2 provider."
49+
/>
50+
<Badges>
51+
{isEntitled ? <EntitledBadge /> : <DisabledBadge />}
52+
<EnterpriseBadge />
53+
</Badges>
54+
</div>
5455

55-
<Stack direction="row" spacing={2}>
56-
<Button
57-
component={Link}
58-
to="/deployment/oauth2-provider/apps/add"
59-
startIcon={<AddIcon />}
60-
>
61-
Add application
62-
</Button>
63-
</Stack>
56+
<Button
57+
component={Link}
58+
to="/deployment/oauth2-provider/apps/add"
59+
startIcon={<AddIcon />}
60+
>
61+
Add application
62+
</Button>
6463
</Stack>
6564

66-
<TableContainer>
65+
<TableContainer css={{ marginTop: 32 }}>
6766
<Table>
6867
<TableHead>
6968
<TableRow>

0 commit comments

Comments
 (0)