From b2efe968eafce697df13025e70373a57b8a4a66e Mon Sep 17 00:00:00 2001 From: Steven Tischer Date: Tue, 23 Jun 2026 20:46:20 +0200 Subject: [PATCH] enhance snippet and article title styles for better readability --- webapp/src/app/modules/news/news.component.scss | 6 +++++- .../shared/ui/news-list/news-list.component.scss | 15 ++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/webapp/src/app/modules/news/news.component.scss b/webapp/src/app/modules/news/news.component.scss index 8cc7660b..3ed0d40d 100644 --- a/webapp/src/app/modules/news/news.component.scss +++ b/webapp/src/app/modules/news/news.component.scss @@ -18,9 +18,13 @@ h6 { } .snippet { + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; color: var(--sg-text-muted); font-size: 13px; - line-height: 1.4; + line-height: 1.45; } ::ng-deep .snippet em { diff --git a/webapp/src/app/shared/ui/news-list/news-list.component.scss b/webapp/src/app/shared/ui/news-list/news-list.component.scss index f3b197b6..75afffa4 100644 --- a/webapp/src/app/shared/ui/news-list/news-list.component.scss +++ b/webapp/src/app/shared/ui/news-list/news-list.component.scss @@ -78,9 +78,11 @@ table { } .article-title { - display: inline-block; - max-width: 520px; - line-height: 1.35; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + line-height: 1.45; color: var(--sg-text); font-size: 14px; font-weight: 700; @@ -192,11 +194,10 @@ table { padding: 8px 12px; } -::ng-deep .mat-mdc-row { - height: 72px; -} - ::ng-deep .mat-mdc-cell { + padding-top: 18px; + padding-bottom: 18px; + vertical-align: top; color: var(--sg-text); border-bottom-color: var(--sg-border); font-size: 13px;