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,17 +267,15 @@ 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; -webkit-line-clamp: 2;
-webkit-line-clamp: 2; overflow: hidden;
overflow: hidden; overflow-wrap: anywhere;
overflow-wrap: anywhere; 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 {
@ -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 {