From 6e4a3049306e75e92f1ef743653a660b20e3cd4e Mon Sep 17 00:00:00 2001 From: kdeterme Date: Sat, 19 Sep 2026 14:42:13 +0200 Subject: [PATCH] fix(teams): eliminate double scrollbar and white void in planning, highlight week/month scope controls --- .../templates/contracts/teams_index.html | 130 ++++++++++++++---- 1 file changed, 100 insertions(+), 30 deletions(-) diff --git a/loko/contracts/templates/contracts/teams_index.html b/loko/contracts/templates/contracts/teams_index.html index 245b6f5..392e4e8 100644 --- a/loko/contracts/templates/contracts/teams_index.html +++ b/loko/contracts/templates/contracts/teams_index.html @@ -138,29 +138,79 @@ } /* --- Onglet 2 : Planification / Calendrier des équipes --- */ + body.tab-planning-active #content-wrapper, + #content-wrapper:has(#tab-planning.active) { + overflow-y: hidden !important; + padding-bottom: 2px !important; + } + + .teams-container { + display: flex; + flex-direction: column; + height: 100%; + max-height: calc(100vh - 65px); + overflow: hidden; + } + + .teams-header-row { + flex-shrink: 0; + margin-bottom: 6px !important; + } + + #teamsTabContent { + flex: 1 1 auto; + min-height: 0; + display: flex; + flex-direction: column; + } + + .tab-pane.active { + flex: 1 1 auto; + min-height: 0; + display: flex; + flex-direction: column; + } + + #tab-current-state.active { + overflow-y: auto; + display: block; + } + + #tab-planning.active { + display: flex; + flex-direction: column; + overflow: hidden; + flex: 1 1 auto; + min-height: 0; + } + .planning-toolbar { + flex-shrink: 0; background: #ffffff; border: 1px solid #dee2e6; border-radius: 8px; - padding: 10px 14px; - margin-bottom: 16px; + padding: 8px 12px; + margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); } .planning-layout { + flex: 1 1 auto; + min-height: 0; display: flex; - gap: 16px; - align-items: flex-start; + gap: 12px; + align-items: stretch; + overflow: hidden; } .planning-matrix-wrapper { flex: 1 1 auto; min-width: 0; + height: 100%; background: #ffffff; border: 1px solid #dee2e6; border-radius: 8px; overflow: auto; - max-height: calc(100vh - 170px); box-shadow: 0 2px 6px rgba(0,0,0,0.04); position: relative; } @@ -168,19 +218,19 @@ .planning-sidebar-wrapper { width: 300px; flex: 0 0 300px; + height: 100%; background: #ffffff; border: 1px solid #dee2e6; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.04); - position: sticky; - top: 20px; - max-height: calc(100vh - 170px); display: flex; flex-direction: column; + overflow: hidden; } .planning-sidebar-header { - padding: 12px 14px; + flex-shrink: 0; + padding: 10px 12px; border-bottom: 1px solid #f0f0f0; background: #fdfdfd; border-top-left-radius: 8px; @@ -188,9 +238,10 @@ } .planning-sidebar-body { - padding: 10px 14px; - overflow-y: auto; flex: 1 1 auto; + min-height: 0; + padding: 8px 12px; + overflow-y: auto; } /* Table planning */ @@ -446,10 +497,10 @@ {% endblock %} {% block content %} -
+
-
+

{% trans "Gestion des équipes" %} @@ -672,16 +723,19 @@

-
- - - - +
+ {% trans "Vue :" %} +
+ + + + +
-
- {% trans "Portée :" %} +
+ {% trans "Affecter par :" %}
@@ -841,6 +895,9 @@ {% trans "Vous tentez de l'assigner à l'équipe" %} : . {% trans "Souhaitez-vous déplacer ce membre ou l'affecter aux deux équipes ?" %}

+
+ {% trans "Portée d'affectation :" %} Jour +