From 9ddb9f46fdec8a5a84d041666a230845bd6ccff8 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Tue, 22 Jul 2025 13:30:25 +0200 Subject: [PATCH] refactor(Cis4 News Widget Responsive): changes the responsive column layouts for the news widget --- public/css/components/dashboard/news.css | 11 +++++++++-- public/js/components/DashboardWidget/News.js | 10 +++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/public/css/components/dashboard/news.css b/public/css/components/dashboard/news.css index 975ef7a81..a5bca7afe 100644 --- a/public/css/components/dashboard/news.css +++ b/public/css/components/dashboard/news.css @@ -169,6 +169,13 @@ cursor: pointer; } -.fhc-news-items-sm{ - +.news-truncate { + display: -webkit-box; + -webkit-line-clamp: 2; + /* number of lines to show */ + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-word; } + diff --git a/public/js/components/DashboardWidget/News.js b/public/js/components/DashboardWidget/News.js index 7f4419aa6..a6c94b90e 100644 --- a/public/js/components/DashboardWidget/News.js +++ b/public/js/components/DashboardWidget/News.js @@ -224,7 +224,7 @@ export default {
-
+
{{ formatDate(news.insertamum) }} {{ formatTime(news.insertamum) }}
@@ -235,20 +235,20 @@ export default {
-
+
-
+