From b2dd9f65b6c51b996b9b155c699a0c019dcacf53 Mon Sep 17 00:00:00 2001 From: hadi Date: Thu, 25 May 2023 13:14:28 +0200 Subject: [PATCH] Apply nowrap white-space only to et2-link used in et2-link-list in order to let its content be shown in multiple lines --- api/js/etemplate/Et2Link/Et2Link.ts | 4 +--- api/templates/default/etemplate2.css | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api/js/etemplate/Et2Link/Et2Link.ts b/api/js/etemplate/Et2Link/Et2Link.ts index df6f9b2866..077e23fde9 100644 --- a/api/js/etemplate/Et2Link/Et2Link.ts +++ b/api/js/etemplate/Et2Link/Et2Link.ts @@ -47,8 +47,7 @@ export class Et2Link extends ExposeMixin(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(LitElement)) imple flex: 1 1 50%; overflow: hidden; text-overflow: ellipsis; - white-space: nowrap; max-width: max-content; width: 0; } diff --git a/api/templates/default/etemplate2.css b/api/templates/default/etemplate2.css index 4ae4d8c0f9..9ddbbafbff 100644 --- a/api/templates/default/etemplate2.css +++ b/api/templates/default/etemplate2.css @@ -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 {