set to 1 line when selected

This commit is contained in:
Mutasem 2021-11-04 13:35:22 +01:00
parent f4ec2e46ca
commit 551177565d

View file

@ -267,8 +267,7 @@ export default mixins(externalHooks, nodeBase, nodeHelpers, workflowHelpers).ext
cursor: default; cursor: default;
padding: 8px; padding: 8px;
.node-name { .node-name > p { // must be paragraph tag to have two lines in safari
> p { // must be paragraph tag to have two lines in safari
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
@ -278,7 +277,6 @@ export default mixins(externalHooks, nodeBase, nodeHelpers, workflowHelpers).ext
font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold);
line-height: var(--font-line-height-compact); line-height: var(--font-line-height-compact);
} }
}
.node-subtitle { .node-subtitle {
white-space: nowrap; white-space: nowrap;
@ -424,6 +422,10 @@ export default mixins(externalHooks, nodeBase, nodeHelpers, workflowHelpers).ext
left: -8px !important; left: -8px !important;
overflow: hidden; overflow: hidden;
width: 116px !important; width: 116px !important;
.node-name > p {
-webkit-line-clamp: 1 !important;
}
} }
.desc { .desc {