From 1b2d5ff6c65263702d7c37701a5345c30e21d59d Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Tue, 22 Jul 2025 15:43:03 +0200 Subject: [PATCH] update(News widget styling): makes card-header of the news content sticky so that the white left and right buttons don't appear in front of a white background --- public/js/components/DashboardWidget/News.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/js/components/DashboardWidget/News.js b/public/js/components/DashboardWidget/News.js index 26757d49c..0f15a165e 100644 --- a/public/js/components/DashboardWidget/News.js +++ b/public/js/components/DashboardWidget/News.js @@ -63,6 +63,14 @@ export default { if (!el.classList.contains("fhc-primary")) { el.classList.add("fhc-primary"); } + if (!el.classList.contains("position-sticky")) { + el.classList.add("position-sticky"); + } + if (!el.classList.contains("top-0")) { + el.classList.add("top-0"); + } + + }); document.querySelectorAll(".fhc-news-card-item .card-header .row").forEach((el) => { if (!el.classList.contains("w-100")) {