Skip to content

Commit

Permalink
fix(): Set vertical alignment when split source/topo view (#1887)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skraye authored Aug 16, 2023
1 parent 83256d7 commit a5048f3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/src/components/inputs/LowCodeEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@
generateGraph();
})
watch(() => props.viewType, () => {
isHorizontal.value = props.viewType === "source-topology" ? false :
(props.viewType?.indexOf("blueprint") !== -1 ? true : localStorage.getItem("topology-orientation") === "1")
generateGraph();
})
// Event listeners & Watchers
const observeWidth = () => {
const resizeObserver = new ResizeObserver(function () {
Expand Down Expand Up @@ -549,7 +555,7 @@
<template>
<div ref="vueFlow" class="vueflow">
<slot name="top-bar"/>
<slot name="top-bar" />
<VueFlow
v-model="elements"
:default-marker-color="cssVariable('--bs-cyan')"
Expand Down

0 comments on commit a5048f3

Please sign in to comment.