diff --git a/src/renderer/components/layout/wizard-layout.scss b/src/renderer/components/layout/wizard-layout.scss index a81cdfd429..603b7ca067 100644 --- a/src/renderer/components/layout/wizard-layout.scss +++ b/src/renderer/components/layout/wizard-layout.scss @@ -16,6 +16,7 @@ > .head-col { position: sticky; border-bottom: 1px solid $grey-800; + justify-content: space-between; } > .content-col { @@ -41,4 +42,17 @@ a { color: $colorInfo; } + + &.centered { + .content-col { + margin: 0; + + > div { + margin: 0 auto; + width: 60%; + min-width: 570px; + max-width: 1000px; + } + } + } } \ No newline at end of file diff --git a/src/renderer/components/layout/wizard-layout.tsx b/src/renderer/components/layout/wizard-layout.tsx index 01b7f331d8..17867eed1a 100644 --- a/src/renderer/components/layout/wizard-layout.tsx +++ b/src/renderer/components/layout/wizard-layout.tsx @@ -10,25 +10,30 @@ interface Props { contentClass?: IClassName; infoPanelClass?: IClassName; infoPanel?: React.ReactNode; + centered?: boolean; // Centering content horizontally } @observer export class WizardLayout extends React.Component { render() { - const { className, contentClass, infoPanelClass, infoPanel, header, headerClass, children: content } = this.props; + const { className, contentClass, infoPanelClass, infoPanel, header, headerClass, centered, children: content } = this.props; return ( -
+
{header && (
{header}
)}
- {content} -
-
- {infoPanel} +
+ {content} +
+ {infoPanel && ( +
+ {infoPanel} +
+ )}
) }