diff --git a/package-lock.json b/package-lock.json index a4ca45519..8fdab50a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12215,6 +12215,11 @@ "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", "integrity": "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==" }, + "office-ui-fabric-core": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/office-ui-fabric-core/-/office-ui-fabric-core-11.0.0.tgz", + "integrity": "sha512-K6+KGnBXXjfSxxZpp+4oDXVLgUc//7OnXrn8F08VoJnGhEz27WUf4ZuMa32SjGoqirWlb4JlKkXbOpC9cis6dQ==" + }, "on-finished": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", diff --git a/package.json b/package.json index dd79f9fb6..bb059daf2 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "mini-css-extract-plugin": "1.6.2", "monaco-editor": "0.25.2", "monaco-editor-webpack-plugin": "4.2.0", + "office-ui-fabric-core": "11.0.0", "postcss-flexbugs-fixes": "5.0.2", "postcss-loader": "4.3.0", "postcss-preset-env": "7.3.0", @@ -123,4 +124,4 @@ "reportFile": "test-report.xml", "indent": 4 } -} +} \ No newline at end of file diff --git a/src/app/services/reducers/dimensions-reducers.ts b/src/app/services/reducers/dimensions-reducers.ts index 8aa986740..91ea91c2d 100644 --- a/src/app/services/reducers/dimensions-reducers.ts +++ b/src/app/services/reducers/dimensions-reducers.ts @@ -5,19 +5,19 @@ import { RESIZE_SUCCESS } from '../redux-constants'; const initialState: IDimensions = { request: { width: '100%', - height: '36vh' + height: '40%' }, response: { width: '100%', - height: '62vh' + height: '60%' }, sidebar: { width: '26%', - height: '98vh' + height: '' }, content: { - width: '72%', - height: '98vh' + width: '74%', + height: '' } }; diff --git a/src/app/views/App.styles.ts b/src/app/views/App.styles.ts index 4e1139162..cae2e5430 100644 --- a/src/app/views/App.styles.ts +++ b/src/app/views/App.styles.ts @@ -6,14 +6,24 @@ export const appStyles = (theme: ITheme) => { background: theme.semanticColors.bodyBackground, color: theme.semanticColors.bodyText, paddingTop: theme.spacing.s1, - width: '100%' + width: '100%', + height: '100%', + paddingRight: '15px', + paddingLeft: '4px', + marginLeft: 'auto', + marginRight: 'auto' + }, + appRow: { + display: 'flex', + flexWrap: 'no-wrap' }, tryItMessage: { marginBottom: theme.spacing.s1 }, sidebar: { background: theme.palette.neutralLighter, - paddingLeft: 10 + paddingRight: 10, + marginRight: 10 }, sidebarMini: { background: theme.palette.neutralLighter, @@ -73,8 +83,8 @@ export const appStyles = (theme: ITheme) => { }, feedbackButtonMobileDisplay: { position: 'absolute', - top: '-1px', - right: '15px' + top: '13px', + right: '10px' } }; }; diff --git a/src/app/views/App.tsx b/src/app/views/App.tsx index edf2b83c3..993a10885 100644 --- a/src/app/views/App.tsx +++ b/src/app/views/App.tsx @@ -377,6 +377,7 @@ class App extends Component { let sideHeight = sidebar.height; let maxWidth = '50%'; let contentWidth = content.width; + const contentHeight = content.height; const query = createShareLink(sampleQuery, authenticated); const { mobileScreen, showSidebar } = sidebarProperties; @@ -392,9 +393,9 @@ class App extends Component { }; if (mobileScreen) { - layout = sidebarWidth = 'col-xs-12 col-sm-12'; + layout = sidebarWidth = 'ms-Grid-col ms-sm12'; sideWidth = '100%'; - sideHeight = '150px'; + sideHeight = '100%'; maxWidth = '100%'; contentWidth = '100%'; layout += ' layout'; @@ -407,7 +408,7 @@ class App extends Component { return ( // @ts-ignore -
+
{ : translateMessage('Sidebar maximized') } /> -
+
+ {graphExplorerMode === Mode.Complete && ( { @@ -423,8 +427,8 @@ class App extends Component { this.resizeSideBar(ref.style.width); } }} - className={sidebarWidth} - minWidth={'4vw'} + className={`ms-Grid-col ms-sm12 ms-md4 ms-lg4 ${sidebarWidth}`} + minWidth={'4'} maxWidth={maxWidth} enable={{ right: true @@ -465,29 +469,29 @@ class App extends Component { {displayContent && (
+
+ +
-
- - -
- { - // @ts-ignore + +
+
+ +
- } +
)}
diff --git a/src/app/views/query-runner/QueryRunner.tsx b/src/app/views/query-runner/QueryRunner.tsx index cd94b18a7..6f21b5124 100644 --- a/src/app/views/query-runner/QueryRunner.tsx +++ b/src/app/views/query-runner/QueryRunner.tsx @@ -134,8 +134,8 @@ IQueryRunnerState public render() { return ( <> -
-
+
+
{ // @ts-ignore
-
-
+
+
{ // @ts-ignore