diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/components/timeline.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/components/timeline.inc b/includes/components/timeline.inc index 6c85472..0ec8870 100644 --- a/includes/components/timeline.inc +++ b/includes/components/timeline.inc @@ -42,7 +42,7 @@ function displayTimeline($systems) { global $app; $showIcons = count($systems) > ...array_reverse(json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/switches.json"), true)), [ 'id' => '00000000-0000-0000-0000-000000000000', - 'timestamp' => date('c', time() + 60), + 'timestamp' => date('c', time() + 3600), 'members' => [] ] ]; @@ -52,7 +52,7 @@ function displayTimeline($systems) { global $app; $showIcons = count($systems) > $correct = $switches[$index - 1]; $v = floor((strtotime($switch["timestamp"]) - $time) / 60); - echo('<td style="max-width: 100%; overflow: hidden; text-align: center; height: ' . 50 / count($systems) . 'px; background-color: #' . (getMemberWithoutSystem($correct["members"][0])["color"] ?? "000000") . '80;" colspan="' . ($v > $leftCols ? $leftCols : $v) . '"><a style="color: white; cursor: pointer; text-decoration: none; width: 100%; display: flex; height: ' . 50 / count($systems) . 'px; align-items: center; justify-content: center;" href="/' . getMemberWithoutSystem($correct["members"][0])["name"] . '">' . implode(", ", array_map(function ($i) { + echo('<td style="max-width: 100%; overflow: hidden; text-align: left; white-space: nowrap; padding: 0 15px; height: ' . 50 / count($systems) . 'px; background-color: #' . (getMemberWithoutSystem($correct["members"][0])["color"] ?? "000000") . '80;" colspan="' . ($v > $leftCols ? $leftCols : $v) . '"><a style="color: white; cursor: pointer; text-decoration: none; width: 100%; display: flex; height: ' . 50 / count($systems) . 'px; align-items: center; justify-content: left;" href="/' . getMemberWithoutSystem($correct["members"][0])["name"] . '">' . implode(", ", array_map(function ($i) { return getMemberWithoutSystem($i)["display_name"] ?? getMemberWithoutSystem($i)["name"] ?? $i; }, $correct["members"])) . '</a></td>'); |