From 07d610d60f0057b1e5c93558f0583f0f01ac9abb Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 21 Jul 2025 08:15:19 +0200 Subject: [PATCH] update(PrimeVue Paginator darkmode): overwrites the background of the paginator component in primevue --- public/css/theme/default.css | 4 ++++ public/js/components/Cis/Cms/News.js | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/public/css/theme/default.css b/public/css/theme/default.css index fe05d8d8a..35a0c98f9 100644 --- a/public/css/theme/default.css +++ b/public/css/theme/default.css @@ -262,4 +262,8 @@ html.dark .tabulator .tabulator-cell { html.dark .tabulator .tabulator-header .tabulator-col:hover { background-color: var(--fhc-tertiary) !important; +} + +.p-paginator{ + background-color: var(--fhc-background) !important; } \ No newline at end of file diff --git a/public/js/components/Cis/Cms/News.js b/public/js/components/Cis/Cms/News.js index 50310e771..bf17666a2 100644 --- a/public/js/components/Cis/Cms/News.js +++ b/public/js/components/Cis/Cms/News.js @@ -58,6 +58,20 @@ export default { FHC_JS_DATA_STORAGE_OBJECT.app_root ); }); + Vue.nextTick(()=>{ + document.querySelectorAll(".card-header").forEach((el) => { + el.classList.add("fhc-primary"); + }); + document.querySelectorAll(".row").forEach((el) => { + el.classList.add("w-100"); + el.classList.add("align-items-center"); + + }); + document.querySelectorAll(".row h2").forEach((el) => { + el.classList.add("mb-0"); + }); + + }) }); }, loadNewPageContent(data) { @@ -66,6 +80,7 @@ export default { .then(res => res.data) .then(result => { this.content = result; + }); } }, @@ -80,7 +95,7 @@ export default { }); }, template: /*html*/ ` -

News

+

News