diff --git a/src/app/layouts/app-layout/app-layout.css b/src/app/layouts/app-layout/app-layout.css index 07cc493..63ce26f 100644 --- a/src/app/layouts/app-layout/app-layout.css +++ b/src/app/layouts/app-layout/app-layout.css @@ -49,9 +49,11 @@ .app-shell { display: flex; - flex: 1; + flex: 1 1 auto; flex-direction: column; - height: 100vh; + box-sizing: border-box; + height: 100%; + min-height: 0; overflow: hidden; padding-top: 112px; } @@ -61,6 +63,8 @@ } .app-main-content { + display: flex; + flex-direction: column; width: 100%; flex: 1 1 auto; min-height: 0; diff --git a/src/app/layouts/flow-editor/flow-editor.css b/src/app/layouts/flow-editor/flow-editor.css index c658420..c77c2ea 100644 --- a/src/app/layouts/flow-editor/flow-editor.css +++ b/src/app/layouts/flow-editor/flow-editor.css @@ -1,3 +1,12 @@ +:host { + display: flex; + flex: 1 1 auto; + width: 100%; + height: 100%; + min-width: 0; + min-height: 0; +} + .flow-editor-main { display: flex; flex: 1 1 auto; @@ -27,10 +36,11 @@ position: relative; flex-direction: column; flex: 0 0 380px; + align-self: stretch; width: 380px; min-width: 320px; max-width: 420px; - height: 100%; + height: auto; min-height: 0; background: #fff; overflow: hidden; @@ -150,6 +160,15 @@ line-height: 1.5; } +.flow-editor-empty-actions { + display: flex; + align-items: center; + justify-content: center; + flex-wrap: wrap; + gap: 10px; + margin-top: 6px; +} + .flow-editor-tour-target { height: 100%; } diff --git a/src/app/layouts/flow-editor/flow-editor.html b/src/app/layouts/flow-editor/flow-editor.html index b3f8578..623dc27 100644 --- a/src/app/layouts/flow-editor/flow-editor.html +++ b/src/app/layouts/flow-editor/flow-editor.html @@ -1,10 +1,10 @@ -
Open an existing flow from the sidebar, create a new one, or ask the assistant to draft one to start editing.
+ } @else {Open an existing flow from the sidebar or create a new one to start editing.
+ } +