From 91d693a8026870e77135dcbf15b5f3b30cee9a15 Mon Sep 17 00:00:00 2001 From: KONE SOREL Date: Tue, 3 Feb 2026 11:31:52 +0000 Subject: [PATCH] df --- Bootstrap_new/css/style_moderne.css | 28 ++++++++++++++++ Vue/gabarit.php | 50 ++--------------------------- Vue/sidebar.php | 32 ++++++++++-------- 3 files changed, 49 insertions(+), 61 deletions(-) diff --git a/Bootstrap_new/css/style_moderne.css b/Bootstrap_new/css/style_moderne.css index cf4ff14a..747ef182 100644 --- a/Bootstrap_new/css/style_moderne.css +++ b/Bootstrap_new/css/style_moderne.css @@ -978,4 +978,32 @@ body { .breadcrumb-item + .breadcrumb-item::before { display: none !important; content: none !important; +} + +/* Styles pour les chevrons de la sidebar */ +.sidebar-chevron { + transition: transform 0.3s ease; + font-size: 0.875rem; +} + +.sidebar-chevron-rotated { + transform: rotate(180deg); +} + +/* Bootstrap gère déjà l'état 'show' du collapse */ +.collapse.show + .sidebar-chevron-rotated, +[aria-expanded="true"] .sidebar-chevron { + transform: rotate(180deg); +} + +/* Correction pour l'affichage des icônes */ +.icon-wrapper { + min-width: 36px; + min-height: 36px; + flex-shrink: 0; /* Empêche le rétrécissement */ +} + +.icon-wrapper i { + font-size: 1rem; + line-height: 1; } \ No newline at end of file diff --git a/Vue/gabarit.php b/Vue/gabarit.php index 9995a3fe..78bd8ff4 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -285,24 +285,16 @@ $retourVue = $infovue['lienRetour']; } $(document).ready(function() { - console.log("=== GABARIT INITIALISATION ==="); - console.log("jQuery version:", $.fn.jquery); - console.log("Bootstrap Select disponible:", typeof $.fn.selectpicker !== 'undefined'); - console.log("Select2 disponible:", typeof $.fn.select2 !== 'undefined'); - console.log("Toastr disponible:", typeof toastr !== 'undefined'); - + // 1. Initialiser Bootstrap Select IMMÉDIATEMENT if (typeof $.fn.selectpicker !== 'undefined') { try { $('.selectpicker').selectpicker(); - console.log("✅ Bootstrap Select initialisé avec succès"); - console.log(" Nombre de .selectpicker trouvés:", $('.selectpicker').length); } catch (error) { console.error("❌ Erreur Bootstrap Select:", error); } } else { - console.warn("⚠️ Bootstrap Select non disponible"); - // Fallback: utiliser Select2 + // Fallback: utiliser Select2 if (typeof $.fn.select2 !== 'undefined') { $('.selectpicker').each(function() { if (!$(this).hasClass('select2-hidden-accessible')) { @@ -312,7 +304,7 @@ $retourVue = $infovue['lienRetour']; }).addClass('selectpicker-fallback'); } }); - console.log("✅ Fallback Select2 appliqué aux .selectpicker"); + } } @@ -321,7 +313,6 @@ $retourVue = $infovue['lienRetour']; $('.select2').select2({ theme: 'bootstrap-5' }); - console.log("✅ Select2 initialisé"); } // 3. Gestion du sidebar @@ -332,23 +323,15 @@ $retourVue = $infovue['lienRetour']; // 4. Gestion de la barre de contexte - VERSION SIMPLIFIÉE ET ROBUSTE function initContextPanel() { - console.log("Initialisation du panneau de contexte..."); - var $panel = $('#barre_laterale_d'); var $showBtn = $('#showSideNav'); var $hideBtn = $('#hideSideNav'); // Vérifier que les éléments existent if (!$panel.length || !$showBtn.length || !$hideBtn.length) { - console.error("❌ Éléments du panneau de contexte non trouvés"); return; } - console.log("✅ Éléments trouvés:"); - console.log(" - Panel:", $panel.length); - console.log(" - Bouton show:", $showBtn.length); - console.log(" - Bouton hide:", $hideBtn.length); - // S'assurer que le panel est caché au départ $panel.removeClass('active'); $showBtn.show(); @@ -372,7 +355,6 @@ $retourVue = $infovue['lienRetour']; $hideBtn.off('click').on('click', function(e) { e.preventDefault(); e.stopPropagation(); - console.log("Bouton hide cliqué"); $panel.removeClass('active'); $showBtn.show(); @@ -386,7 +368,6 @@ $retourVue = $infovue['lienRetour']; if ($panel.hasClass('active') && !$(e.target).closest('#barre_laterale_d').length && !$(e.target).is('#showSideNav')) { - console.log("Clic en dehors du panel"); $panel.removeClass('active'); $showBtn.show(); $('body').removeClass('context-panel-open'); @@ -397,8 +378,6 @@ $retourVue = $infovue['lienRetour']; $panel.off('click').on('click', function(e) { e.stopPropagation(); }); - - console.log("✅ Panneau de contexte initialisé"); } // Initialiser le panneau de contexte @@ -412,26 +391,6 @@ $retourVue = $infovue['lienRetour']; 'cursor': 'pointer' }); - /* Ajouter un bouton de test debug (à enlever en production) - if (typeof modeDev !== 'undefined' && modeDev == "1") { - $('body').append( - '' - ); - - $('#debugTestPanel').on('click', function() { - var $panel = $('#barre_laterale_d'); - if ($panel.hasClass('active')) { - $panel.removeClass('active'); - $('#showSideNav').show(); - console.log("DEBUG: Panel fermé"); - } else { - $panel.addClass('active'); - $('#showSideNav').hide(); - console.log("DEBUG: Panel ouvert"); - } - }); - } - */ // 6. Synchronisation du badge de notifications function syncBadge() { var count = parseInt($("#msgNonLus").val()) || 0; @@ -459,10 +418,7 @@ $retourVue = $infovue['lienRetour']; "timeOut": "5000", "extendedTimeOut": "1000" }; - console.log("✅ Toastr configuré"); } - - console.log("=== GABARIT INITIALISATION TERMINÉE ==="); }); // Fonctions globales pour le panneau de contexte diff --git a/Vue/sidebar.php b/Vue/sidebar.php index e19f5835..c5cd2ea4 100755 --- a/Vue/sidebar.php +++ b/Vue/sidebar.php @@ -15,17 +15,21 @@