diff --git a/frontend/src/metadata/components/cell-formatter/long-text/index.css b/frontend/src/metadata/components/cell-formatter/long-text/index.css index e57a17644e..76d88cff4e 100644 --- a/frontend/src/metadata/components/cell-formatter/long-text/index.css +++ b/frontend/src/metadata/components/cell-formatter/long-text/index.css @@ -2,9 +2,12 @@ width: 100%; max-width: 100%; height: 100%; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 4; + line-clamp: 4; overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + line-height: 1.5; } /* links */ diff --git a/frontend/src/metadata/components/metadata-details/index.css b/frontend/src/metadata/components/metadata-details/index.css index c9de9ff567..0a42b690a7 100644 --- a/frontend/src/metadata/components/metadata-details/index.css +++ b/frontend/src/metadata/components/metadata-details/index.css @@ -62,8 +62,7 @@ .dirent-detail-item-value:not(.editable) .sf-metadata-long-text-formatter { line-height: 1.5; - height: 34px; - display: inline-block; + padding: 7px 6px 0; } .dirent-detail-item-value:not(.editable) .sf-metadata-rate-formatter { diff --git a/frontend/src/metadata/views/kanban/boards/board/card/index.css b/frontend/src/metadata/views/kanban/boards/board/card/index.css index ad7119c116..e13bdeb5e3 100644 --- a/frontend/src/metadata/views/kanban/boards/board/card/index.css +++ b/frontend/src/metadata/views/kanban/boards/board/card/index.css @@ -126,9 +126,13 @@ max-height: 68px; } +.sf-metadata-kanban-card .long-text-formatter, .sf-metadata-view-kanban-boards-text-wrap .sf-metadata-kanban-card-record .long-text-formatter { - display: block; - height: auto; - max-height: 68px; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + line-clamp: 2; + overflow: hidden; + line-height: 1.5; white-space: normal; } diff --git a/frontend/src/metadata/views/table/table-main/records/record/cell/index.css b/frontend/src/metadata/views/table/table-main/records/record/cell/index.css index 1fccf81c98..4b601b6335 100644 --- a/frontend/src/metadata/views/table/table-main/records/record/cell/index.css +++ b/frontend/src/metadata/views/table/table-main/records/record/cell/index.css @@ -148,6 +148,7 @@ .sf-metadata-result-table-cell .sf-metadata-long-text-formatter { width: 100%; + text-overflow: ellipsis; } .sf-metadata-result-table-cell .geolocation-formatter,