Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal-triggered page layout bugs #834

Open
taneliang opened this issue Feb 17, 2018 · 0 comments
Open

Modal-triggered page layout bugs #834

taneliang opened this issue Feb 17, 2018 · 0 comments
Labels

Comments

@taneliang
Copy link
Member

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

2 (possibly unrelated) bugs caused by modals:

  1. The module search box and filter list is laid out wrongly when a modal is open. This might be caused by the no-scroll class set on body.
  2. The page content behind the modal is cut off when the viewport height > 50rem and the page is scrolled down. As the body height is set to the viewport height, this overflow: hidden line hides all content below a certain point.

If the current behavior is a bug, please provide the steps to reproduce. If possible, please upload a screenshot or link to a video recording (on macOS you can use QuickTime) demonstrating the problem.

  1. Wrong layout bug

    1. Navigate to https://nusmods.com/modules?q=yakuza.
    2. Ensure that the viewport width >= 768px.
    3. Click the "Feedback Welcome!" button in the footer.
    4. Observe that the search box is in the wrong position, and the filter list has disappeared.
      nusmods com_settings
  2. Page content cut off bug

    1. Navigate to https://nusmods.com/settings or https://nusmods.com/modules?q=yakuza.
    2. Ensure that the viewport height >= 50rem.
    3. Scroll down (you must scroll down, otherwise nothing will be cut off).
    4. Click the "Feedback Welcome!" button in the footer.
    5. Observe that the page content is cut off.
      nusmods com_timetable_sem-2 1

What is the expected behavior?

The content behind the modal should not change when the modal is displayed, apart from disabling page scrolling.

Further information

  • Which version of NUSMods are you currently using? 20180129-9fd1116
  • Which browser and version are you using? Chrome on Linux 64.0.3282.140, Safari on iOS 11.2.5
@taneliang taneliang added the bug label Feb 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant