[BUG] Appointment booking page broken on mobile with long descriptions
Steps to reproduce
- Create and appointment with a multi-line description
- Open the link in a mobile
Expected behavior
elements should not overlap.
Actual behavior
This is how the page is formatted for mobile (here, emulating Galaxy S10 Android 11 on Firefox):
On a desktop screen it works fine:
For those impatient, the following custom css (app -> enable "custom css", then go to settings -> theming) seems to fix. Keep in mind this is 100% slop AI generated quick-and-dirty fix, and not a proper solution.
.booking__date-selection .booking__date-header {
margin-top: 30px; /* Adds a little space between description and calendar */
}
.booking__date-selection .mx-datepicker-popup {
position: relative !important; /* Overrides absolute */
top: auto !important; /* Overrides the -274px calculation */
transform: none !important; /* Prevents JS positioning transforms */
margin-top: 30px; /* Adds a little space between description and calendar */
}
/* Ensure the wrapper takes up the necessary space */
.booking__date-selection .mx-datepicker {
width: 100%;
display: block;
}
.booking__date-selection .booking__time-zone {
display: none !important;
}
Calendar app version
6.2.0
loosely related to #7362 and #4142
Hi @riparise
Thank you for the bug report.
Since you already seem to have a css fix for the issue, you are welcome to put in a PR to fix the issue. Also, FYI, there is a major restructuring coming in 6.3 (Vue 3 migration), so your changes might be short lived.
Thanks for the reply. I will wait and if the issue persists in the 6.3 I will open a merge request