diff --git a/cypress/e2e/42-nps-survey.cy.ts b/cypress/e2e/42-nps-survey.cy.ts index e06fe43ba8050..11e5ebb88e5e4 100644 --- a/cypress/e2e/42-nps-survey.cy.ts +++ b/cypress/e2e/42-nps-survey.cy.ts @@ -10,7 +10,7 @@ import { WorkflowPage } from '../pages/workflow'; const workflowPage = new WorkflowPage(); -const NOW = 1717771477012; +const NOW = Date.now(); const ONE_DAY = 24 * 60 * 60 * 1000; const THREE_DAYS = ONE_DAY * 3; const SEVEN_DAYS = ONE_DAY * 7; diff --git a/cypress/e2e/45-ai-assistant.cy.ts b/cypress/e2e/45-ai-assistant.cy.ts index 9b50fef44a0df..9d3381136327b 100644 --- a/cypress/e2e/45-ai-assistant.cy.ts +++ b/cypress/e2e/45-ai-assistant.cy.ts @@ -557,6 +557,8 @@ describe('General help', () => { }).as('chatRequest'); aiAssistant.getters.askAssistantFloatingButton().click(); + wf.getters.zoomToFitButton().click(); + aiAssistant.actions.sendMessage('What is wrong with this workflow?'); cy.wait('@chatRequest'); diff --git a/packages/design-system/src/components/AskAssistantChat/AskAssistantChat.vue b/packages/design-system/src/components/AskAssistantChat/AskAssistantChat.vue index 3cd62205f680a..7e7dc3a77401a 100644 --- a/packages/design-system/src/components/AskAssistantChat/AskAssistantChat.vue +++ b/packages/design-system/src/components/AskAssistantChat/AskAssistantChat.vue @@ -344,6 +344,8 @@ async function onCopyButtonClick(content: string, e: MouseEvent) { .container { height: 100%; position: relative; + display: grid; + grid-template-rows: auto 1fr auto; } p { @@ -373,10 +375,6 @@ p { background-color: var(--color-background-light); border: var(--border-base); border-top: 0; - height: 100%; - overflow-x: hidden; - overflow-y: auto; - padding-bottom: 250px; // make scrollable at the end position: relative; pre, @@ -390,7 +388,13 @@ p { } .messages { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; padding: var(--spacing-xs); + overflow-y: auto; & + & { padding-top: 0; diff --git a/packages/editor-ui/src/App.vue b/packages/editor-ui/src/App.vue index c9d23632de90c..dbcbb2a1c4bff 100644 --- a/packages/editor-ui/src/App.vue +++ b/packages/editor-ui/src/App.vue @@ -128,7 +128,8 @@ watch(defaultLocale, (newLocale) => { .container { height: 100vh; overflow: hidden; - display: flex; + display: grid; + grid-template-columns: 1fr auto; } // App grid is the main app layout including modals and other absolute positioned elements @@ -136,13 +137,12 @@ watch(defaultLocale, (newLocale) => { position: relative; display: grid; height: 100vh; - flex-basis: 100%; grid-template-areas: 'banners banners' 'sidebar header' 'sidebar content'; - grid-auto-columns: minmax(0, max-content) 1fr; - grid-template-rows: auto fit-content($header-height) 1fr; + grid-template-columns: auto 1fr; + grid-template-rows: auto auto 1fr; } .banners { diff --git a/packages/editor-ui/src/components/AskAssistant/AskAssistantChat.vue b/packages/editor-ui/src/components/AskAssistant/AskAssistantChat.vue index db4d8ee1057c9..d83193815b165 100644 --- a/packages/editor-ui/src/components/AskAssistant/AskAssistantChat.vue +++ b/packages/editor-ui/src/components/AskAssistant/AskAssistantChat.vue @@ -103,12 +103,6 @@ function onClose() { @@ -837,6 +842,7 @@ $--header-spacing: 20px; width: 100%; display: flex; align-items: center; + flex-wrap: wrap; } .group {