diff --git a/app/pages.php b/app/pages.php index 6548f92..9e765a4 100644 --- a/app/pages.php +++ b/app/pages.php @@ -522,7 +522,7 @@ function page_calendar(array $user): void 'trailer' => $trailer, 'lanes' => $lanes, 'bars' => $bars, - 'height' => max($rowMin, $barBase * $lanes + 16 + ($extraMeta ? 14 : 0)), + 'height' => max($rowMin, $barBase * $lanes + 16 + ($extraMeta ? 24 : 0)), ]; } diff --git a/app/util.php b/app/util.php index 01a8cd5..5329227 100644 --- a/app/util.php +++ b/app/util.php @@ -92,7 +92,7 @@ function url(string $path = '/'): string } /** Cache-Buster: bei Änderungen an app.css/app.js erhöhen. */ -const DIC_ASSET_VERSION = '26'; +const DIC_ASSET_VERSION = '27'; function asset(string $path): string { diff --git a/views/calendar.php b/views/calendar.php index fcb3b87..141b82a 100644 --- a/views/calendar.php +++ b/views/calendar.php @@ -184,7 +184,6 @@ $minWidth = match ($view) { // Buchungen zeigen – die Zeile/Spalte wird dafür höher. $separateReturn = booking_has_separate_return($booking); $showMeta = $view === 'day' || $geo['span'] >= 2 || $separateReturn; - $compactReturn = $separateReturn && $view !== 'day' && $geo['span'] < 2; $label = in_array($view, ['month', 'weeks'], true) ? truncate((string) $booking['customer_name'], 18) : (string) $booking['customer_name']; $barClass = 'cal-bar' . ($cancelled ? ' is-cancelled' : '') @@ -211,11 +210,13 @@ $minWidth = match ($view) { aria-label="" title=""> - - - - - + + · + + + ↩ + + · diff --git a/web/assets/app.css b/web/assets/app.css index b86ac51..4d396f1 100644 --- a/web/assets/app.css +++ b/web/assets/app.css @@ -609,8 +609,8 @@ a .ico, button .ico { pointer-events: none; } } .cal-bar.is-cancelled .cal-bar__name { text-decoration: line-through; } .cal-bar.is-dragging { z-index: 50; opacity: .88; filter: brightness(1.06); cursor: grabbing; box-shadow: 0 10px 20px rgba(10, 44, 78, .3); transition: none; } -.cal-bar__name { font-size: .76rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; } -.cal-bar__meta { font-size: .63rem; font-weight: 500; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; } +.cal-bar__name { font-size: .76rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; } +.cal-bar__meta { font-size: .63rem; font-weight: 500; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; } .cal-bar__meta--soft { opacity: .72; } .cal-bar__meta--return { font-weight: 700; opacity: .95; } .cal-bar__flag { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .9; }