mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
fix(editor): Fix multiple-output endpoints success style after connection is detached (#5366)
This commit is contained in:
parent
20356ba8c8
commit
9b628ddc34
|
@ -892,6 +892,7 @@ export default mixins(
|
||||||
--endpoint-size-medium: 18px;
|
--endpoint-size-medium: 18px;
|
||||||
--stalk-size: 40px;
|
--stalk-size: 40px;
|
||||||
--stalk-success-size: 87px;
|
--stalk-success-size: 87px;
|
||||||
|
--stalk-success-size-without-label: 40px;
|
||||||
--stalk-long-size: 127px;
|
--stalk-long-size: 127px;
|
||||||
--plus-endpoint-box-size: 24px;
|
--plus-endpoint-box-size: 24px;
|
||||||
--plus-endpoint-box-size-small: 17px;
|
--plus-endpoint-box-size-small: 17px;
|
||||||
|
@ -1037,7 +1038,7 @@ export default mixins(
|
||||||
}
|
}
|
||||||
|
|
||||||
.node-output-endpoint-label {
|
.node-output-endpoint-label {
|
||||||
margin-left: calc(var(--endpoint-size-small) + var(--spacing-3xs));
|
margin-left: calc(var(--endpoint-size-small) + var(--spacing-2xs));
|
||||||
}
|
}
|
||||||
.node-input-endpoint-label {
|
.node-input-endpoint-label {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
@ -1071,10 +1072,13 @@ export default mixins(
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ep-success {
|
|
||||||
--stalk-size: var(--stalk-success-size);
|
|
||||||
}
|
|
||||||
.long-stalk {
|
.long-stalk {
|
||||||
--stalk-size: var(--stalk-long-size);
|
--stalk-size: var(--stalk-long-size);
|
||||||
}
|
}
|
||||||
|
.ep-success {
|
||||||
|
--stalk-size: var(--stalk-success-size);
|
||||||
|
}
|
||||||
|
.ep-success--without-label {
|
||||||
|
--stalk-size: var(--stalk-success-size-without-label);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -148,12 +148,16 @@ export class N8nPlusEndpoint extends EndpointRepresentation<ComputedN8nPlusEndpo
|
||||||
if (this.params.showOutputLabel) {
|
if (this.params.showOutputLabel) {
|
||||||
this.label = label;
|
this.label = label;
|
||||||
this.setStalkLabels();
|
this.setStalkLabels();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.endpoint.addClass('ep-success--without-label');
|
||||||
}
|
}
|
||||||
|
|
||||||
clearSuccessOutput() {
|
clearSuccessOutput() {
|
||||||
this.endpoint.removeOverlay('successOutputOverlay');
|
this.endpoint.removeOverlay('successOutputOverlay');
|
||||||
this.endpoint.removeClass('ep-success');
|
this.endpoint.removeClass('ep-success');
|
||||||
|
this.endpoint.removeClass('ep-success--without-label');
|
||||||
this.label = '';
|
this.label = '';
|
||||||
this.setStalkLabels();
|
this.setStalkLabels();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue