diff --git a/packages/web/src/components/EditorLayout/index.jsx b/packages/web/src/components/EditorLayout/index.jsx index 52ed1586..2c6ceaa9 100644 --- a/packages/web/src/components/EditorLayout/index.jsx +++ b/packages/web/src/components/EditorLayout/index.jsx @@ -17,6 +17,7 @@ import { UPDATE_FLOW_STATUS } from 'graphql/mutations/update-flow-status'; import { UPDATE_FLOW } from 'graphql/mutations/update-flow'; import { GET_FLOW } from 'graphql/queries/get-flow'; import * as URLS from 'config/urls'; +import { TopBar } from './style'; export default function EditorLayout() { const { flowId } = useParams(); @@ -67,60 +68,60 @@ export default function EditorLayout() { ); return ( <> - - - - - - - - - - {!loading && ( - - {flow?.name} - - )} - - - - - - + + + + {!loading && ( + + {flow?.name} + + )} + + + + + + + {!flow && !loading && 'not found'} diff --git a/packages/web/src/components/EditorLayout/style.js b/packages/web/src/components/EditorLayout/style.js new file mode 100644 index 00000000..0f2cf0eb --- /dev/null +++ b/packages/web/src/components/EditorLayout/style.js @@ -0,0 +1,10 @@ +import { styled } from '@mui/material/styles'; +import Stack from '@mui/material/Stack'; + +export const TopBar = styled(Stack)(({ theme }) => ({ + zIndex: theme.zIndex.appBar, + position: 'sticky', + top: 0, + left: 0, + right: 0, +})); diff --git a/packages/web/src/styles/theme.js b/packages/web/src/styles/theme.js index ac28a46b..39ee0020 100644 --- a/packages/web/src/styles/theme.js +++ b/packages/web/src/styles/theme.js @@ -225,7 +225,7 @@ export const defaultTheme = createTheme({ textDecoration: 'none', }, '#root': { - height: '100vh', + minHeight: '100vh', }, }, }, @@ -297,6 +297,6 @@ export const mationTheme = createTheme( }, }, }, - }) + }), ); export default defaultTheme;