Kalender: Mitarbeiter wieder in der Monatsansicht anzeigen

Seit Monat die Standardansicht ist, fehlte in den Balken die zweite
Zeile mit dem Mitarbeiter – sie war nur für Woche (ab 2 Tagen) und Tag
vorgesehen. Jetzt gilt die Regel in allen Ansichten; die Zeilenhöhe der
Monatsansicht wächst entsprechend (34 px pro Lane, mindestens 44 px),
damit beide Zeilen Platz haben.
This commit is contained in:
torsten 2026-11-18 21:38:32 +01:00
parent f332edfc5f
commit c89b20b95b
2 changed files with 3 additions and 3 deletions

View file

@ -374,8 +374,8 @@ function page_calendar(array $user): void
$cursor = add_days($cursor, 1);
}
$barBase = ['day' => 76, 'week' => 48, 'month' => 28][$view];
$rowMin = ['day' => 104, 'week' => 64, 'month' => 40][$view];
$barBase = ['day' => 76, 'week' => 48, 'month' => 34][$view];
$rowMin = ['day' => 104, 'week' => 64, 'month' => 44][$view];
$rows = [];
foreach ($trailers as $trailer) {

View file

@ -125,7 +125,7 @@ $minWidth = match ($view) {
$booking = $bar['booking'];
$geo = $bar['geo'];
$cancelled = $booking['status'] === 'cancelled';
$showMeta = $view === 'day' || ($view === 'week' && $geo['span'] >= 2);
$showMeta = $view === 'day' || $geo['span'] >= 2;
$label = $view === 'month' ? truncate((string) $booking['customer_name'], 18) : (string) $booking['customer_name'];
$aria = $booking['customer_name'] . ', ' . $booking['trailer_label'] . ', '
. fmt_date_with_time($booking['start_date'], $booking['start_time'] ?? null) . ' bis '