Skip to content

Commit

Permalink
T keng/fix section spacing (#513)
Browse files Browse the repository at this point in the history
* change div wrapping

* fix spacing on sidebar and centerview
  • Loading branch information
ngkelly3 authored and Sahil Tara committed Apr 18, 2019
1 parent dd7e70b commit d6b9da8
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/client/src/appStyles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
height: calc(100vh - 122px);
margin-top: 51px;
margin-bottom: 71px;
justify-content: center;
justify-content: flex-start;
}

.centerViewMaxHeight {
height: calc(100vh - 51px);
margin-bottom: 0px;
}
}
11 changes: 7 additions & 4 deletions src/client/src/components/LeftSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ const LeftSidebar = (props: Props) => {
});
const { isVisited, intl } = props;
return (
<nav aria-label={intl.formatMessage(messages.ariaNavLabel)}>
<React.Fragment>
{pathname !== ROUTES.PAGE_DETAILS && (
<div className={classnames(styles.leftView, styles.container)}>
<nav
className={classnames(styles.leftView, styles.container)}
aria-label={intl.formatMessage(messages.ariaNavLabel)}
>
<div>
{leftSidebarData.map((sidebartitle, idx) => {
return (
Expand Down Expand Up @@ -108,9 +111,9 @@ const LeftSidebar = (props: Props) => {
defaultMessage="Give Feedback"
/>
</a>
</div>
</nav>
)}
</nav>
</React.Fragment>
);
};

Expand Down
2 changes: 1 addition & 1 deletion src/client/src/components/LeftSidebar/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.container {
padding-top: 15%;
display: flex;
flex-direction: column;
justify-content: space-between;
padding-top: 15%;
}

.itemBorder {
Expand Down
5 changes: 3 additions & 2 deletions src/client/src/containers/RightSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ class RightSidebar extends React.Component<Props, IRightSidebarState> {
const { formatMessage } = intl;
const { frontendOptions, backendOptions, projectTypes } = contentOptions;
return (
<div role="complementary">
<React.Fragment>
{pathname !== ROUTES.PAGE_DETAILS && (
<div
role="complementary"
className={classNames(styles.container, styles.rightViewCropped)}
>
{pathname !== ROUTES.REVIEW_AND_GENERATE && (
Expand Down Expand Up @@ -180,7 +181,7 @@ class RightSidebar extends React.Component<Props, IRightSidebarState> {
</div>
</div>
)}
</div>
</React.Fragment>
);
}
}
Expand Down
1 change: 1 addition & 0 deletions src/client/src/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"about.about": "About",
"about.reportAnIssue": "Report an issue",
"about.templatesVersion": "Templates version:",
"about.wizardVersion": "Wizard version:",
"azureFunctions.Title": "Azure Functions",
Expand Down
3 changes: 3 additions & 0 deletions src/client/src/translations/whitelist_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"leftSidebar.pages",
"leftSidebar.services",
"leftSidebar.summary",
"leftSideBar.ariaNavLabel",
"loginCard.details",
"loginCard.createAccount",
"loginCard.signIn",
Expand Down Expand Up @@ -69,10 +70,12 @@
"footer.back",
"footer.next",
"footer.generate",
"footer.navAriaLabel",
"header.signOut",
"licenses.licenses",
"postGenerationModal.deploymentHalted",
"postGenerationModal.restartWizard",
"postGenerationModal.deploymentFailure",
"postGenerationModal.closeWizard",
"postGenerationModal.success",
"postGenerationModal.isDeploying",
Expand Down

0 comments on commit d6b9da8

Please sign in to comment.