Apply nowrap white-space only to et2-link used in et2-link-list in order to let its content be shown in multiple lines

This commit is contained in:
hadi 2023-05-25 13:14:28 +02:00
parent 44df2023e5
commit b0d3570892
2 changed files with 4 additions and 3 deletions

View File

@ -47,8 +47,7 @@ export class Et2Link extends ExposeMixin<Et2Widget>(Et2Widget(LitElement)) imple
flex: 2 1 50%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: max-content;
max-width: max-content;
width: 0;
}
@ -56,7 +55,6 @@ export class Et2Link extends ExposeMixin<Et2Widget>(Et2Widget(LitElement)) imple
flex: 1 1 50%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: max-content;
width: 0;
}

View File

@ -1071,6 +1071,9 @@ et2-link-string > et2-link::part(icon), et2-link-string > et2-link::part(remark)
display: none;
}
et2-link-list et2-link::part(title), et2-link-list et2-link::part(remark) {
white-space: nowrap;
}
/* Link entry - x button*/
div.et2_link_entry {