diff --git a/package.json b/package.json index 09c576a8c3..e77655456b 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "build:nodes": "turbo run build:nodes", "typecheck": "turbo typecheck", "dev": "turbo run dev --parallel --env-mode=loose --filter=!n8n-design-system --filter=!@n8n/chat --filter=!@n8n/task-runner", + "dev:be": "turbo run dev --parallel --env-mode=loose --filter=!n8n-design-system --filter=!@n8n/chat --filter=!@n8n/task-runner --filter=!n8n-editor-ui", "dev:ai": "turbo run dev --parallel --env-mode=loose --filter=@n8n/nodes-langchain --filter=n8n --filter=n8n-core", "clean": "turbo run clean --parallel", "reset": "node scripts/ensure-zx.mjs && zx scripts/reset.mjs", diff --git a/packages/@n8n/chat/src/components/Message.vue b/packages/@n8n/chat/src/components/Message.vue index f584516332..fa54835931 100644 --- a/packages/@n8n/chat/src/components/Message.vue +++ b/packages/@n8n/chat/src/components/Message.vue @@ -132,7 +132,7 @@ onMounted(async () => { .chat-message { display: block; position: relative; - max-width: 80%; + max-width: fit-content; font-size: var(--chat--message--font-size, 1rem); padding: var(--chat--message--padding, var(--chat--spacing)); border-radius: var(--chat--message--border-radius, var(--chat--border-radius)); @@ -159,7 +159,7 @@ onMounted(async () => { } p { - line-height: var(--chat--message-line-height, 1.8); + line-height: var(--chat--message-line-height, 1.5); word-wrap: break-word; } diff --git a/packages/editor-ui/src/App.vue b/packages/editor-ui/src/App.vue index f11c423dc2..68c29e8058 100644 --- a/packages/editor-ui/src/App.vue +++ b/packages/editor-ui/src/App.vue @@ -31,15 +31,11 @@ const loading = ref(true); const defaultLocale = computed(() => rootStore.defaultLocale); const isDemoMode = computed(() => route.name === VIEWS.DEMO); const showAssistantButton = computed(() => assistantStore.canShowAssistantButtonsOnCanvas); - +const hasContentFooter = ref(false); const appGrid = ref(null); const assistantSidebarWidth = computed(() => assistantStore.chatWidth); -watch(defaultLocale, (newLocale) => { - void loadLanguage(newLocale); -}); - onMounted(async () => { logHiringBanner(); void useExternalHooks().run('app.mount'); @@ -52,11 +48,6 @@ onBeforeUnmount(() => { window.removeEventListener('resize', updateGridWidth); }); -// As assistant sidebar width changes, recalculate the total width regularly -watch(assistantSidebarWidth, async () => { - await updateGridWidth(); -}); - const logHiringBanner = () => { if (settingsStore.isHiringBannerEnabled && !isDemoMode.value) { console.log(HIRING_BANNER); @@ -69,6 +60,21 @@ const updateGridWidth = async () => { uiStore.appGridWidth = appGrid.value.clientWidth; } }; + +// As assistant sidebar width changes, recalculate the total width regularly +watch(assistantSidebarWidth, async () => { + await updateGridWidth(); +}); + +watch(route, (r) => { + hasContentFooter.value = r.matched.some( + (matchedRoute) => matchedRoute.components?.footer !== undefined, + ); +}); + +watch(defaultLocale, (newLocale) => { + void loadLanguage(newLocale); +});