From f124687b01daa7870ab21681872e98cb430d9d48 Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Tue, 8 Oct 2024 14:49:13 +0300 Subject: [PATCH] feat(editor): Bring selected nodes and edges to front on new canvas (no-changelog) (#11158) --- .../editor-ui/src/styles/plugins/_vueflow.scss | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/editor-ui/src/styles/plugins/_vueflow.scss b/packages/editor-ui/src/styles/plugins/_vueflow.scss index 9c2414572b..1c70b8e973 100644 --- a/packages/editor-ui/src/styles/plugins/_vueflow.scss +++ b/packages/editor-ui/src/styles/plugins/_vueflow.scss @@ -70,7 +70,7 @@ } /** - * Node + * Nodes */ .vue-flow__node { @@ -83,6 +83,10 @@ cursor: grabbing; } + &.selected { + z-index: 1 !important; + } + &:has(.sticky--active) { z-index: 1 !important; } @@ -98,3 +102,12 @@ margin-left: calc(-1 * var(--spacing-2xs)); padding: var(--spacing-2xs); } + +/** + * Edges + */ + +.vue-flow__edges, +.vue-flow__edge-labels { + z-index: 1 !important; +}