From d1c1e467a7a75b9076400c5bbdc53612b86bf988 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 2 Sep 2024 15:55:58 +0200 Subject: [PATCH] line-clamp --- .../src/components/grid/cells/RelationshipCell.svelte | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte b/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte index 313a951a32..b3680bf654 100644 --- a/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte @@ -548,7 +548,7 @@ .relationship-fields { margin: var(--spacing-m) var(--spacing-l); display: grid; - grid-template-columns: minmax(auto, 75%) minmax(auto, 25%); + grid-template-columns: minmax(auto, 70%) minmax(auto, 30%); grid-row-gap: var(--spacing-m); grid-column-gap: var(--cell-spacing); } @@ -558,4 +558,11 @@ color: var(--spectrum-global-color-gray-600); font-size: var(--font-size-xs); } + .relationship-field-value { + overflow: hidden; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + line-clamp: 3; + }