From 9757ad435be5e9f814a8c411430686494c8e1aca Mon Sep 17 00:00:00 2001 From: Roberto Fontanarosa Date: Thu, 9 Apr 2026 10:47:23 +0200 Subject: [PATCH] Limit survey title to 2 lines, description to 3 lines --- .../shared/survey-list/survey-list.component.scss | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/src/app/components/shared/survey-list/survey-list.component.scss b/web/src/app/components/shared/survey-list/survey-list.component.scss index ea7a4d4f7..2727fb919 100644 --- a/web/src/app/components/shared/survey-list/survey-list.component.scss +++ b/web/src/app/components/shared/survey-list/survey-list.component.scss @@ -68,12 +68,21 @@ margin-top: 60px; margin-bottom: 8px; line-height: 28px; - display: flex; - align-items: center; /* Inside auto layout */ flex: none; order: 0; flex-grow: 0; + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + } + + .survey-description { + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; } } }