diff --git a/packages/frontend/editor-ui/src/App.vue b/packages/frontend/editor-ui/src/App.vue index 4f49db8e0f9..b766d9184ea 100644 --- a/packages/frontend/editor-ui/src/App.vue +++ b/packages/frontend/editor-ui/src/App.vue @@ -30,6 +30,8 @@ import axios from 'axios'; import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue'; import { useRoute } from 'vue-router'; import { useStyles } from './composables/useStyles'; +import { useExposeCssVar } from '@/composables/useExposeCssVar'; +import { useFloatingUiOffsets } from '@/composables/useFloatingUiOffsets'; const route = useRoute(); const rootStore = useRootStore(); @@ -41,6 +43,7 @@ const settingsStore = useSettingsStore(); const ndvStore = useNDVStore(); const { setAppZIndexes } = useStyles(); +const { toastBottomOffset, askAiFloatingButtonBottomOffset } = useFloatingUiOffsets(); // Initialize undo/redo useHistoryHelper(route); @@ -51,10 +54,6 @@ useWorkflowDiffRouting(); const loading = ref(true); const defaultLocale = computed(() => rootStore.defaultLocale); const isDemoMode = computed(() => route.name === VIEWS.DEMO); -const showAssistantFloatingButton = computed( - () => - assistantStore.canShowAssistantButtonsOnCanvas && !assistantStore.hideAssistantFloatingButton, -); const hasContentFooter = ref(false); const appGrid = ref(null); @@ -109,6 +108,9 @@ watch( }, { immediate: true }, ); + +useExposeCssVar('--toast-bottom-offset', toastBottomOffset); +useExposeCssVar('--ask-assistant-floating-button-bottom-offset', askAiFloatingButtonBottomOffset);