diff --git a/common/constants.js b/common/constants.js
index 00d477ba..beec733d 100644
--- a/common/constants.js
+++ b/common/constants.js
@@ -44,8 +44,8 @@ export const system = {
export const zindex = {
navigation: 1,
sidebar: 5,
- alert: 4,
- header: 3,
+ alert: 3,
+ header: 4,
modal: 6,
tooltip: 7,
};
diff --git a/components/core/ApplicationHeader.js b/components/core/ApplicationHeader.js
index 2d0242e8..fec6e5ed 100644
--- a/components/core/ApplicationHeader.js
+++ b/components/core/ApplicationHeader.js
@@ -31,11 +31,11 @@ const STYLES_ICON_ELEMENT = css`
const STYLES_APPLICATION_HEADER = css`
display: flex;
- align-items: flex-start;
+ align-items: center;
justify-content: space-between;
width: calc(100% - ${Constants.sizes.navigation}px);
height: 56px;
- padding: 12px 48px 0 36px;
+ padding: 0 48px 0 36px;
pointer-events: none;
background-color: ${Constants.system.white};
@@ -48,7 +48,7 @@ const STYLES_APPLICATION_HEADER = css`
}
@media (max-width: ${Constants.sizes.mobile}px) {
- padding: 12px 24px 0 12px;
+ padding: 0px 12px;
width: 100%;
}
`;
@@ -134,40 +134,44 @@ export default class ApplicationHeader extends React.Component {
return (
-
+
- {} : this.props.onBack}
- >
-
-
- {} : this.props.onForward}
- >
-
-
+ {} : this.props.onBack}
+ >
+
+
+ {} : this.props.onForward}
+ >
+
+
+
-
-
-
+
+
+
{/* */}
-
- this.props.onAction({ type: "SIDEBAR", value: "SIDEBAR_HELP" })
- }
- >
-
+
+
+ this.props.onAction({
+ type: "SIDEBAR",
+ value: "SIDEBAR_HELP",
+ })
+ }
+ >
+
+
+
+
+ {} : this.props.onBack}
+ >
+
+
+ {} : this.props.onForward}
+ >
+
+
+
+
+
diff --git a/components/core/ApplicationLayout.js b/components/core/ApplicationLayout.js
index 97fc23f9..ecd03707 100644
--- a/components/core/ApplicationLayout.js
+++ b/components/core/ApplicationLayout.js
@@ -66,6 +66,7 @@ const STYLES_CONTENT = css`
margin-top: ${Constants.sizes.topOffset}px;
@media (max-width: ${Constants.sizes.mobile}px) {
padding-left: 0px;
+ margin-top: calc(${Constants.sizes.topOffset}px + 36px);
}
`;
@@ -144,6 +145,10 @@ const STYLES_SIDEBAR_HEADER = css`
const STYLES_SIDEBAR_CONTENT = css`
padding: 56px 24px 24px 24px;
padding-top: calc(56px + ${Constants.sizes.topOffset}px);
+
+ @media (max-width: ${Constants.sizes.mobile}px) {
+ padding-top: 8px;
+ }
`;
const STYLES_BLOCK = css`
@@ -163,6 +168,12 @@ export default class ApplicationLayout extends React.Component {
_navigation;
_body;
+ _handleDismiss = (e) => {
+ e.stopPropagation();
+ e.preventDefault();
+ this.props.onDismissSidebar();
+ };
+
render() {
let sidebarElements = null;
if (this.props.sidebar) {
@@ -175,8 +186,8 @@ export default class ApplicationLayout extends React.Component {
@@ -242,7 +253,7 @@ export default class ApplicationLayout extends React.Component {
captureResize={false}
captureScroll={false}
enabled
- onOutsideRectEvent={this.props.onDismissSidebar}
+ onOutsideRectEvent={this._handleDismiss}
>
{/*