Add centered layout variant to Settings page header and content
This commit is contained in:
parent
c16fdaa2a2
commit
a041f137c0
|
|
@ -46,13 +46,13 @@ export function SettingsPage({ render }: { render: () => void }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Main>
|
<Main>
|
||||||
<MainHeader>
|
<MainHeader centered>
|
||||||
<MainTitle>Settings</MainTitle>
|
<MainTitle>Settings</MainTitle>
|
||||||
<HeaderActions>
|
<HeaderActions>
|
||||||
<Button onClick={goBack}>Back</Button>
|
<Button onClick={goBack}>Back</Button>
|
||||||
</HeaderActions>
|
</HeaderActions>
|
||||||
</MainHeader>
|
</MainHeader>
|
||||||
<MainContent>
|
<MainContent centered>
|
||||||
<Section>
|
<Section>
|
||||||
<SectionTitle>Install CLI</SectionTitle>
|
<SectionTitle>Install CLI</SectionTitle>
|
||||||
<DashboardInstallCmd>
|
<DashboardInstallCmd>
|
||||||
|
|
|
||||||
|
|
@ -148,6 +148,13 @@ export const MainHeader = define('MainHeader', {
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
padding: '0 24px',
|
padding: '0 24px',
|
||||||
borderBottom: `1px solid ${theme('colors-border')}`,
|
borderBottom: `1px solid ${theme('colors-border')}`,
|
||||||
|
variants: {
|
||||||
|
centered: {
|
||||||
|
maxWidth: 560,
|
||||||
|
margin: '0 auto',
|
||||||
|
width: '100%',
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
export const MainTitle = define('MainTitle', {
|
export const MainTitle = define('MainTitle', {
|
||||||
|
|
@ -196,6 +203,13 @@ export const MainContent = define('MainContent', {
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
padding: '10px 24px',
|
padding: '10px 24px',
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
|
variants: {
|
||||||
|
centered: {
|
||||||
|
maxWidth: 560,
|
||||||
|
margin: '0 auto',
|
||||||
|
width: '100%',
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
export const DashboardContainer = define('DashboardContainer', {
|
export const DashboardContainer = define('DashboardContainer', {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user