fix(ui): hide the chat launcher on the workflow page, where the Archie bar is the entry point
This commit is contained in:
1 parent
4253b2abd7
commit
faeb97e1e0
2 files changed
+6
-1
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { onUnmounted, ref, watch } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
import ChatFab from "./ChatFab.vue";
|
||||
import ChatPanel from "./ChatPanel.vue";
|
||||
@@ -21,6 +22,9 @@ import { escapeOwnedByLayer } from "./state";
|
||||
* makes it a containing block for `position: fixed`, so a launcher nested
|
||||
* inside it would anchor to the shell and ride off the bottom of a long page.
|
||||
*/
|
||||
// The workflow page has its own Archie bar under the canvas; a second entry
|
||||
// point there would duplicate it and cover the canvas.
|
||||
const route = useRoute();
|
||||
const open = ref(false);
|
||||
const fab = ref<{ $el: HTMLButtonElement } | null>(null);
|
||||
|
||||
@@ -59,6 +63,7 @@ onUnmounted(() => document.removeEventListener("keydown", onKeydown));
|
||||
|
||||
<template>
|
||||
<div
|
||||
v-if="route.name !== 'workflows'"
|
||||
class="fixed right-6 bottom-6 z-40 max-md:right-4 max-md:bottom-4"
|
||||
>
|
||||
<ChatPanel :open="open" />
|
||||
|
||||
@@ -461,7 +461,7 @@ function syncScroll(event: Event): void {
|
||||
</WorkflowCanvas>
|
||||
<!-- Below the canvas rather than over it: nodes run to the bottom edge,
|
||||
so a floating bar hid the last step. -->
|
||||
<div class="flex justify-center px-3 pt-2 max-md:pr-16">
|
||||
<div class="flex justify-center px-3 pt-2">
|
||||
<CoBuilder
|
||||
v-if="selected"
|
||||
:key="selected"
|
||||
|
||||
Reference in new issue
Block a user