diff --git a/tickets_kanban.php b/tickets_kanban.php index ec30e364..159f412a 100644 --- a/tickets_kanban.php +++ b/tickets_kanban.php @@ -6,9 +6,9 @@ #kanban-board { display: flex; box-sizing: border-box; - overflow-x: auto; + overflow-x: auto; min-width: 400px; - height: calc(100vh - 210px); + height: calc(100vh - 210px); } .kanban-column { @@ -19,8 +19,8 @@ background: #f4f4f4; padding: 10px; border: 1px solid #ccc; - min-height: calc(100vh - 230px); - max-height: calc(100vh - 230px); + min-height: calc(100vh - 230px); + max-height: calc(100vh - 230px); box-sizing: border-box; } @@ -92,8 +92,12 @@ $kanban_array = array_values($statuses); // Sort the array by the 'order' field, moving null values to the end usort($kanban_array, function($a, $b) { - if ($a->order === null) return 1; - if ($b->order === null) return -1; + if ($a->order === null) { + return 1; + } + if ($b->order === null) { + return -1; + } return $a->order - $b->order; }); @@ -138,7 +142,7 @@ $kanban = $ordered_kanban; } ?> -
-