nextcloud / nextcloud/calendar
[BUG] Appointment booking page broken on mobile with long descriptions
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 332
- Avg merge
- 16h 13m
- Merged PRs (30d)
- 137
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the booking page with a multi-line description at a mobile viewport, then inspect the booking page elements matching .booking__date-selection and .booking__date-header. Compare the calendar popup and time-zone layout against the desktop view; done means the description, calendar, and related controls no longer overlap on mobile without relying on custom CSS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100