diff --git a/CHANGELOG.md b/CHANGELOG.md index 632c423..3cd3428 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.11.2] - 2026-02-03 + +### Changed + +- Calendar page room column now wider (200px) with proper left alignment +- Room column displays building name on second row for better identification +- Changed calendar table layout from fixed to auto for flexible column widths + ## [0.11.1] - 2026-02-03 ### Added diff --git a/assets/css/admin.css b/assets/css/admin.css index a2593f5..f119c07 100644 --- a/assets/css/admin.css +++ b/assets/css/admin.css @@ -976,7 +976,7 @@ .bnb-calendar-table { width: 100%; border-collapse: collapse; - table-layout: fixed; + table-layout: auto; } .bnb-calendar-table th, @@ -997,7 +997,8 @@ .bnb-calendar-table th.room-header { text-align: left; padding-left: 10px; - min-width: 150px; + width: 200px; + min-width: 200px; } /* Calendar Day Cell */ @@ -1068,16 +1069,31 @@ } /* Room Row in Multi-Room Calendar */ -.bnb-calendar-room { +.bnb-calendar-table .bnb-calendar-room { font-weight: 600; text-align: left; padding: 8px 10px; background: #f6f7f7; + min-width: 200px; + white-space: nowrap; } -.bnb-calendar-room small { +.bnb-calendar-room a { + display: block; +} + +.bnb-calendar-room .room-number { font-weight: normal; color: #646970; + margin-left: 5px; +} + +.bnb-calendar-room .building-name { + display: block; + font-weight: normal; + font-size: 12px; + color: #646970; + margin-top: 2px; } /* Calendar Legend */ diff --git a/src/Admin/Calendar.php b/src/Admin/Calendar.php index 9ab0322..be6d31b 100644 --- a/src/Admin/Calendar.php +++ b/src/Admin/Calendar.php @@ -256,16 +256,20 @@ final class Calendar {
ID, '_bnb_room_room_number', true ); - $booked_dates = Availability::get_booked_dates( $room->ID, $year, $month ); + $room_number = get_post_meta( $room->ID, '_bnb_room_room_number', true ); + $room_building = Room::get_building( $room->ID ); + $booked_dates = Availability::get_booked_dates( $room->ID, $year, $month ); ?>