From bc3ac5117e2e73e28e7b12d58dff78f14e909ed5 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Wed, 28 Feb 2024 15:01:42 +0100
Subject: [PATCH] set max width for phase detail block

---
 public_html/deployment/classes/project_gui.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public_html/deployment/classes/project_gui.class.php b/public_html/deployment/classes/project_gui.class.php
index b63ad261..d8d8ba6d 100644
--- a/public_html/deployment/classes/project_gui.class.php
+++ b/public_html/deployment/classes/project_gui.class.php
@@ -633,7 +633,7 @@ class projectgui extends project {
 
         $renderAdminLTE=new renderadminlte();                    
 
-        $iWidth=12 / count($this->getActivePhases());
+        $iWidth=min(12 / count($this->getActivePhases()), 4);
         foreach ($this->getActivePhases() as $sPhase) {
             $sRow1.=$renderAdminLTE->addCol(
                 '<table class="nomargin"><tr><th class="' . $sPhase . ' tdphase">' . $sPhase . '</th></tr></table>'
-- 
GitLab