nextcloud / nextcloud/calendar

[BUG] Appointment booking page broken on mobile with long descriptions

Open
#8,029 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug
Dominant language
JavaScript
Stars
1.2k
Forks
332
Avg merge
16h 13m
Merged PRs (30d)
137

Description

Steps to reproduce
  1. Create and appointment with a multi-line description
  2. 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):

Image

On a desktop screen it works fine:

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.