From 365bbbb89e38ab67f3a7cdf95d1d68fbf2c34a8d Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 31 May 2025 08:29:59 +0000 Subject: [PATCH] feat(ui): Synchronize card backgrounds with table background settings This commit updates the card components in all modules (Asistencias, Empleados, Planillas, Tareas) to use the same background color as you specified in the module's "Table Background" setting. Previously, card backgrounds were hardcoded (typically white). Now, they dynamically reflect your color choice for the corresponding module's table, ensuring visual consistency. Changes made: - Modified `cardAsistencia.vue`, `cardEmpleado.vue`, `cardPlanilla.vue`, and `cardTarea.vue`. - Each card component now imports the `useUi` store. - The main container of each card component has its `backgroundColor` style dynamically bound to the respective `tableBgColor` property from the `useUi` store (e.g., `ui.tableBgColorAsistencias` for `cardAsistencia.vue`). - Removed the static `bg-white` class from these card components. This change directly addresses the issue where cards did not respect the color customization you selected in settings for table backgrounds. --- ui/src/components/asistencias/cardAsistencia.vue | 5 ++++- ui/src/components/empleados/cardEmpleado.vue | 5 ++++- ui/src/components/planillas/cardPlanilla.vue | 5 ++++- ui/src/components/tareas/cardTarea.vue | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ui/src/components/asistencias/cardAsistencia.vue b/ui/src/components/asistencias/cardAsistencia.vue index 5a2c389..f5a14b7 100644 --- a/ui/src/components/asistencias/cardAsistencia.vue +++ b/ui/src/components/asistencias/cardAsistencia.vue @@ -1,5 +1,5 @@