Merge pull request #437 from R0m1k3/1.1

Improve task display and data loading logic
This commit is contained in:
LogiFlow authored and GitHub committed 2025-09-11 11:40:01 +02:00
commit 1e7d98350c
3 files changed
+14 -3

No files matched your search

-2
View File
@@ -62,13 +62,11 @@
html, body {
@apply font-sans antialiased bg-surface text-foreground;
overflow-x: hidden !important;
max-width: 100vw;
height: 100%;
}
#root {
overflow-x: hidden !important;
max-width: 100vw;
height: 100%;
}
+1 -1
View File
@@ -378,7 +378,7 @@ export default function Tasks() {
throw error;
}
},
enabled: !!user && (user.role === 'admin' || (user.role === 'directeur' || user.role === 'manager' ? !!selectedStoreId : true)),
enabled: !!user, // Charger les données dès que l'utilisateur est connecté
});
// Fetch users for task assignment - seulement pour admin/manager/directeur
+13
View File
@@ -3,6 +3,19 @@ import type { Config } from "tailwindcss";
export default {
darkMode: ["class"],
content: ["./client/index.html", "./client/src/**/*.{js,jsx,ts,tsx}"],
safelist: [
// Classes responsive critiques pour le module Tâches
'hidden', 'block', 'flex', 'grid',
'sm:hidden', 'sm:block', 'sm:flex', 'sm:grid',
'md:hidden', 'md:block', 'md:flex', 'md:grid',
'lg:hidden', 'lg:block', 'lg:flex', 'lg:grid',
'grid-cols-1', 'sm:grid-cols-2', 'sm:grid-cols-3', 'lg:grid-cols-4',
'min-h-[44px]', 'text-base', 'text-sm', 'text-xs',
'p-3', 'p-4', 'px-3', 'px-4', 'py-2', 'py-3',
'gap-2', 'gap-3', 'gap-4', 'sm:gap-4',
'order-1', 'order-2', 'sm:order-1', 'sm:order-2',
'flex-col', 'sm:flex-row', 'justify-stretch', 'sm:justify-end'
],
theme: {
extend: {
borderRadius: {