diff --git a/webapp/src/apiService/index.ts b/webapp/src/apiService/index.ts index 70a961c..2330997 100644 --- a/webapp/src/apiService/index.ts +++ b/webapp/src/apiService/index.ts @@ -7,7 +7,7 @@ import { useMockAPI } from "./mock"; const locationPrefixWeb = window.location.pathname.match(/(\/.+\/)web/i); const baseURL = new URL( process.env.NODE_ENV === 'development' ? - "http://localhost:8000" : + `http://${window.location.hostname}:8000` : window.location.origin + (!locationPrefixWeb ? '' : locationPrefixWeb[1]) ); export const wsURL = baseURL + "socket" diff --git a/webapp/src/components/Modal/index.tsx b/webapp/src/components/Modal/index.tsx index 712fa36..b326a8b 100644 --- a/webapp/src/components/Modal/index.tsx +++ b/webapp/src/components/Modal/index.tsx @@ -13,7 +13,7 @@ const useModalStyle = createAppUseStyles(theme => ({ justifyContent: 'center', alignItems: 'center', zIndex: open ? 10 : -1, - position: 'absolute', + position: 'fixed', height: '100vh', width: '100vw', top: 0, @@ -30,10 +30,10 @@ const useModalStyle = createAppUseStyles(theme => ({ }, inner: { zIndex: 10, - maxWidth: '80%', - maxHeight: '90%', - minHeight: 'fit-content', - minWidth: 'fit-content', + maxWidth: '80vw', + maxHeight: '90vh', + minHeight: 'min-content', + minWidth: '100px', padding: '15px', display: 'flex', flexDirection: 'column', diff --git a/webapp/src/components/NodeEditor/index.css b/webapp/src/components/NodeEditor/index.css index a6cde99..1693581 100644 --- a/webapp/src/components/NodeEditor/index.css +++ b/webapp/src/components/NodeEditor/index.css @@ -63,4 +63,8 @@ align-items: flex-start; padding: 0 0.5em 0 1.5em; margin: 0; +} + +.node-editor--error>li { + text-align: left; } \ No newline at end of file