diff --git a/ui/src/components/chat/CanvasChat.vue b/ui/src/components/chat/CanvasChat.vue index f591e82..387f1df 100644 --- a/ui/src/components/chat/CanvasChat.vue +++ b/ui/src/components/chat/CanvasChat.vue @@ -47,8 +47,8 @@ watch(() => chat.items.length, scrollBottom)
+ class="user-message max-w-lg rounded-lg px-4 py-2 shadow break-words" + :class="m.owner==='yo' ? 'is-user text-white' : 'bg-white text-gray-900'"> {{ m.text }}
@@ -65,9 +65,9 @@ watch(() => chat.items.length, scrollBottom) @keydown="handleKey" rows="1" placeholder="Escribí un mensaje… (Enter para enviar, Shift+Enter salto)" - class="flex-1 resize-none rounded-lg border p-3 focus:outline-none focus:ring-2 focus:ring-teal-500 custom-scroll" + class="chat-input flex-1 resize-none rounded-lg border p-3 focus:outline-none focus:ring-2 custom-scroll" /> - @@ -75,9 +75,39 @@ watch(() => chat.items.length, scrollBottom) diff --git a/ui/src/components/empleados/cardEmpleado.vue b/ui/src/components/empleados/cardEmpleado.vue index 1abb0cf..9946086 100644 --- a/ui/src/components/empleados/cardEmpleado.vue +++ b/ui/src/components/empleados/cardEmpleado.vue @@ -47,14 +47,15 @@ diff --git a/ui/src/components/empleados/tablaEmpleados.vue b/ui/src/components/empleados/tablaEmpleados.vue index 74744df..593eddb 100644 --- a/ui/src/components/empleados/tablaEmpleados.vue +++ b/ui/src/components/empleados/tablaEmpleados.vue @@ -75,42 +75,58 @@ @@ -121,11 +137,5 @@ const handleViewDetails = (employeeId: string | number) => { object-fit: cover; /* Ensures avatar images are displayed nicely */ } -/* Optional: Keep icon transition if not handled by Tailwind's transition utilities on the button */ -button svg { - transition: transform 0.15s ease-in-out; -} -button:hover svg { - transform: scale(1.1); /* Adjusted scale for a subtler effect */ -} +/* Icon transition style removed to align with tablaPlanillas.vue */ diff --git a/ui/src/stores/useUi.js b/ui/src/stores/useUi.js index 45eb65f..78c1cdd 100644 --- a/ui/src/stores/useUi.js +++ b/ui/src/stores/useUi.js @@ -99,9 +99,9 @@ export const useUi = defineStore('ui', { tableBgColorConfiguracion: '#FFFFFF', desktopNavbarPersistent: false, // Default module views - 'defaultViewEmpleados': 'table', + 'defaultViewEmpleados': 'card', // Changed from 'table' to 'card' 'defaultViewTareas': 'table', - 'defaultViewPlanillas': 'table', + 'defaultViewPlanillas': 'table', // Already present 'defaultViewAsistencias': 'table', 'defaultViewConfiguracion': 'table', } diff --git a/ui/src/style.css b/ui/src/style.css index fb4740a..67053cc 100644 --- a/ui/src/style.css +++ b/ui/src/style.css @@ -24,10 +24,25 @@ --card-hover-shadow: 0 4px 10px rgba(0,0,0,0.10); /* Colores de módulo */ - --accent-color-asistencias: #4CAF50; - --accent-color-empleados: #2196F3; - --accent-color-planillas: #FF9800; - --accent-color-tareas: #9C27B0; + /* Empleados - Blue 500 (Tailwind) */ + --accent-color-empleados-rgb: 59, 130, 246; + --accent-color-empleados: rgb(var(--accent-color-empleados-rgb)); + + /* Chat - Teal 600 (Tailwind) */ + --accent-color-chat-rgb: 13, 148, 136; + --accent-color-chat: rgb(var(--accent-color-chat-rgb)); + + /* Planillas - Emerald 500 (Tailwind) */ + --accent-color-planillas-rgb: 16, 185, 129; + --accent-color-planillas: rgb(var(--accent-color-planillas-rgb)); + + /* Asistencias - Green 500 (#4CAF50) */ + --accent-color-asistencias-rgb: 76, 175, 80; + --accent-color-asistencias: rgb(var(--accent-color-asistencias-rgb)); + + /* Tareas - Purple 500 (#9C27B0) */ + --accent-color-tareas-rgb: 156, 39, 176; + --accent-color-tareas: rgb(var(--accent-color-tareas-rgb)); /* Fondos de tabla (light) */ --table-container-bg-color-asistencias: #fdebee; diff --git a/ui/src/views/empleados/EmpleadosIndex.vue b/ui/src/views/empleados/EmpleadosIndex.vue index 90ec10b..290c60b 100644 --- a/ui/src/views/empleados/EmpleadosIndex.vue +++ b/ui/src/views/empleados/EmpleadosIndex.vue @@ -1,21 +1,14 @@