fix(editor): Make sure deactivated status shows even for nodes with long names on new canvas (no-changelog) (#11142)

This commit is contained in:
Alex Grozav 2024-10-07 17:15:25 +03:00 committed by GitHub
parent 6522b1cc44
commit 2343634c64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 12 deletions

View file

@ -126,7 +126,9 @@ function openContextMenu(event: MouseEvent) {
<div :class="$style.description"> <div :class="$style.description">
<div v-if="label" :class="$style.label"> <div v-if="label" :class="$style.label">
{{ label }} {{ label }}
<div v-if="isDisabled">({{ i18n.baseText('node.disabled') }})</div> </div>
<div v-if="isDisabled" :class="$style.disabledLabel">
({{ i18n.baseText('node.disabled') }})
</div> </div>
<div v-if="subtitle" :class="$style.subtitle">{{ subtitle }}</div> <div v-if="subtitle" :class="$style.subtitle">{{ subtitle }}</div>
</div> </div>
@ -265,7 +267,8 @@ function openContextMenu(event: MouseEvent) {
align-items: center; align-items: center;
} }
.label { .label,
.disabledLabel {
font-size: var(--font-size-m); font-size: var(--font-size-m);
text-align: center; text-align: center;
text-overflow: ellipsis; text-overflow: ellipsis;

View file

@ -18,8 +18,8 @@ exports[`CanvasNodeDefault > configurable > should render configurable node corr
class="label" class="label"
> >
Test Node Test Node
<!--v-if-->
</div> </div>
<!--v-if-->
<div <div
class="subtitle" class="subtitle"
> >
@ -47,8 +47,8 @@ exports[`CanvasNodeDefault > configuration > should render configurable configur
class="label" class="label"
> >
Test Node Test Node
<!--v-if-->
</div> </div>
<!--v-if-->
<div <div
class="subtitle" class="subtitle"
> >
@ -76,8 +76,8 @@ exports[`CanvasNodeDefault > configuration > should render configuration node co
class="label" class="label"
> >
Test Node Test Node
<!--v-if-->
</div> </div>
<!--v-if-->
<div <div
class="subtitle" class="subtitle"
> >
@ -105,8 +105,8 @@ exports[`CanvasNodeDefault > should render node correctly 1`] = `
class="label" class="label"
> >
Test Node Test Node
<!--v-if-->
</div> </div>
<!--v-if-->
<div <div
class="subtitle" class="subtitle"
> >
@ -157,8 +157,8 @@ exports[`CanvasNodeDefault > trigger > should render trigger node correctly 1`]
class="label" class="label"
> >
Test Node Test Node
<!--v-if-->
</div> </div>
<!--v-if-->
<div <div
class="subtitle" class="subtitle"
> >