From 244c64925036ec4a7541de213b7d807519f56495 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 9 Aug 2022 16:12:08 +0000 Subject: [PATCH] Bug 31265: (QA follow-up) Align time selection controls like other inputs Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi --- .../bootstrap/en/modules/opac-curbside-pickups.tt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt index 666f5bbb1d..0e87b9b4c2 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt @@ -20,9 +20,8 @@ display: flex; flex-wrap: wrap; } - #pickup-times label { - flex-basis: 100%; - text-align: center; + #pickup-time-slots { + max-width: 80%; } fieldset.rows .pickup_time label { background: #e6e6e6 linear-gradient(180deg,#f0f0f0,#e6e6e6); @@ -357,7 +356,7 @@ pickupDate._flatpickr.config.onClose.push(function( selectedDates, dateStr, instance ){ /* Here we add an onClose event to the existing flatpickr instance */ /* It fires after the user has selected a date from the calendar popup */ - $('#pickup-times').html(""); + $('#pickup-times').html("
"); $('#schedule-pickup-button').prop( 'disabled', 1 ); var currentDate = dateStr; @@ -453,7 +452,7 @@ let pickups_scheduled = pickupSlot.pickups_scheduled; let pickups_available = policy.patrons_per_interval - pickups_scheduled; let disabled = pickupSlot.available ? "" : "disabled"; - $("#pickup-times").append(` `); + $("#pickup-time-slots").append(` `); } $("#pickup_notes_item,#pickup-times").show(); -- 2.39.5