style(commercial) : repertoire client — titres 16px / corps + tags 14px, texte en noir
Surcharge du style par defaut de MalioDataTable (titres et corps en bleu m-primary, 20px/18px) via un style scoped + classe marqueur clients-table : titres de colonne noirs 16px, texte du corps noir 14px. Tags de site passes de text-xs (12px) a text-sm (14px).
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
:per-page="itemsPerPage"
|
:per-page="itemsPerPage"
|
||||||
:per-page-options="itemsPerPageOptions"
|
:per-page-options="itemsPerPageOptions"
|
||||||
row-clickable
|
row-clickable
|
||||||
table-class="table-fixed"
|
table-class="table-fixed clients-table"
|
||||||
:empty-message="t('commercial.clients.empty')"
|
:empty-message="t('commercial.clients.empty')"
|
||||||
@row-click="onRowClick"
|
@row-click="onRowClick"
|
||||||
@update:page="goToPage"
|
@update:page="goToPage"
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
<span
|
<span
|
||||||
v-for="site in (item.sites as ClientSite[])"
|
v-for="site in (item.sites as ClientSite[])"
|
||||||
:key="site.id"
|
:key="site.id"
|
||||||
class="inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium text-white"
|
class="inline-flex items-center rounded-full px-2 py-0.5 text-sm font-medium text-white"
|
||||||
:style="{ backgroundColor: site.color }"
|
:style="{ backgroundColor: site.color }"
|
||||||
>
|
>
|
||||||
{{ site.name }}
|
{{ site.name }}
|
||||||
@@ -419,3 +419,25 @@ onMounted(() => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
/*
|
||||||
|
* Surcharge du style par defaut de MalioDataTable pour le repertoire client :
|
||||||
|
* le composant rend les titres de colonne et le corps en bleu (text-m-primary),
|
||||||
|
* en 20px (titres) / 18px (corps). Demande : titres NOIRS a 16px, corps NOIR a 14px.
|
||||||
|
* Les badges de site (text-white / text-xs) gardent leur style propre (plus
|
||||||
|
* specifique sur leur span).
|
||||||
|
*/
|
||||||
|
:deep(.clients-table thead th) {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.clients-table thead th span) {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.clients-table tbody td) {
|
||||||
|
color: #000;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user