diff --git a/motorradig/public/css/custom.css b/motorradig/public/css/custom.css index f279c1b..e3386d6 100644 --- a/motorradig/public/css/custom.css +++ b/motorradig/public/css/custom.css @@ -1022,8 +1022,8 @@ p { align-items: center; justify-content: space-between; gap: .5rem; - padding: .35rem 0; - border-bottom: 1px solid rgba(255, 255, 255, .08); + padding: .22rem 0; + border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: .9rem; } @@ -1051,32 +1051,48 @@ p { } .tour-room-group { - margin-top: .75rem; - padding-top: .6rem; - border-top: 1px solid rgba(255, 255, 255, .1); + margin-top: .55rem; + padding: .55rem .7rem .6rem; + border: 1px solid rgba(255, 255, 255, .14); + border-radius: 10px; + background: rgba(255, 255, 255, .05); } .tour-room-group:first-of-type { margin-top: 0; - padding-top: 0; - border-top: 0; } -.tour-room-title { +.tour-room-group.is-unassigned { + border-style: dashed; + background: rgba(78, 161, 255, .08); +} + +.tour-room-head { display: flex; - align-items: baseline; + align-items: center; justify-content: space-between; gap: .5rem; - margin: 0 0 .25rem; +} + +.tour-room-heading { + display: flex; + align-items: baseline; + gap: .45rem; + min-width: 0; +} + +.tour-room-name { color: #fff; font-size: .88rem; font-weight: 600; + overflow-wrap: anywhere; } .tour-room-meta { - color: rgba(255, 255, 255, .65); - font-size: .78rem; + color: rgba(255, 255, 255, .6); + font-size: .76rem; font-weight: 500; + white-space: nowrap; } /* Bildergalerie der Detailansicht */ @@ -1358,9 +1374,9 @@ p { /* Zimmer- und Personenverwaltung in der Seitenspalte */ .tour-room-tools { display: flex; - justify-content: flex-end; - gap: .35rem; - margin: -.1rem 0 .3rem; + align-items: center; + margin: 0 0 0 auto; + flex: 0 0 auto; } .tour-icon-btn { diff --git a/motorradig/views/tour/edit.php b/motorradig/views/tour/edit.php index f3fccba..e022b40 100644 --- a/motorradig/views/tour/edit.php +++ b/motorradig/views/tour/edit.php @@ -34,6 +34,22 @@ foreach (($rooms ?? []) as $row) { } } +// Einzelzimmer zuerst, danach Doppelzimmer; freie Zimmer je Sektion unten. +uasort($roomMap, static function (array $a, array $b): int { + if ($a['capacity'] !== $b['capacity']) { + return $a['capacity'] <=> $b['capacity']; + } + + $aFree = $a['booked'] >= $a['capacity']; + $bFree = $b['booked'] >= $b['capacity']; + + if ($aFree !== $bFree) { + return $aFree <=> $bFree; + } + + return 0; +}); + $freeRooms = array_filter($roomMap, static fn(array $room): bool => $room['booked'] < $room['capacity']); ?> @@ -274,13 +290,13 @@ $freeRooms = array_filter($roomMap, static fn(array $room): bool => $room['booke $room): ?>
- = e($room['name']) ?> - -
+