update(PrimeVue Paginator darkmode): overwrites the background of the paginator component in primevue

This commit is contained in:
SimonGschnell
2025-07-21 08:15:19 +02:00
parent a22041007c
commit 07d610d60f
2 changed files with 20 additions and 1 deletions
+4
View File
@@ -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;
}
+16 -1
View File
@@ -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*/ `
<h2 >News</h2>
<h2 class="fhc-primary-color">News</h2>
<hr/>
<pagination v-show="content?true:false" :page_size="page_size" @page="page=$event.page; loadNewPageContent($event)" :maxPageCount="maxPageCount">
</pagination>