summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-25 21:46:12 +0200
committerRaindropsSys <contact@minteck.org>2023-06-25 21:46:12 +0200
commit5a35cecdcd8658113102ae98fc04e764e0ee9ed0 (patch)
tree508619986fb8bd9b5f46bce2e6c8a69f6f45982a
parent5adf2b8517c21845dd0b406dee910514ff78640d (diff)
downloadpluralconnect-5a35cecdcd8658113102ae98fc04e764e0ee9ed0.tar.gz
pluralconnect-5a35cecdcd8658113102ae98fc04e764e0ee9ed0.tar.bz2
pluralconnect-5a35cecdcd8658113102ae98fc04e764e0ee9ed0.zip
Updated includes/components/timeline.inc (automated)
-rw-r--r--includes/components/timeline.inc4
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>');