https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41129
--- Comment #143 from Paul Derscheid <[email protected]> --- Created attachment 205357 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205357&action=edit Bug 41129: (QA follow-up) Show a single month when the calendar has no room for two - BookingCalendar picks showMonths from its wrapper's width: two when two day grids fit, else one, so a phone-width modal no longer overflows; measured once after the first build, then from a ResizeObserver, rebuilding Flatpickr on the next frame when the count changes - Stretch .booking-date-picker so that width is the space available - Write BookingPeriodStep's render width on the next frame too, or the two observers trip the browser's ResizeObserver loop error - Load Flatpickr's stylesheet in the component harness, as calendar.inc does, so the grid has its real width there - Cover the single-month and resize cases in BookingCalendar_spec.ts Test plan: 1. yarn js:build; open the booking modal at ~440px width: one month; widen past ~620px of modal width: two months, selection kept 2. cypress run --component 3. cypress run --spec 't/cypress/integration/Circulation/bookingsModal*_spec.ts' Assisted-by: Fable 5.1 (Anthropic) Signed-off-by: Paul Derscheid <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
