Skip to content
Snippets Groups Projects

Mobile setting modal behavior fixes

Merged Eugenij requested to merge eugenijm/pleroma-fe:mobile-setting-modal-fix into develop
1 unresolved thread

Closes #908 (closed)

Edited by Eugenij

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • HJ
  • 943 943 line-height: 1.3rem;
    944 944 }
    945 945
    946 .settings-modal-layout {
    947 @media all and (max-width: 800px) {
    948 height: 100%;
    949
    950 body {
    951 height: 100vh;
    • Maintainer

      this will most likely break scroll in background. I don't entirely understand - does safari/chrome not recalculate vh when showing/hiding the addressbar?

    • changed this line in version 5 of the diff

    • Author Contributor

      You're right, it does break the background scroll when the modal settings is minimized. I've removed this part and replaced it by the body-scroll-lock directive to make it so that the background is only locked when the settings content is visible. iOS needs the background to be locked in order for the foreground scroll not to be glitchy. Specifically, the movement that starts with scroll-up doesn't work regardless of the further direction (but the one that starts with scroll-down does), and sometimes the background is scrolled instead). The lock fixes those.

      Edited by Eugenij
    • Maintainer

      i thought lock was already in place? weird.

    • Author Contributor

      There is a lock but it is applied to the whole modal, which doesn't help in this case since we need it for the scrollable content that is inside the modal

    • Please register or sign in to reply
  • Eugenij added 1 commit

    added 1 commit

    • 50d3350a - Add body 100% width for the preview, refactor the modalActivated watcher

    Compare with previous version

  • Eugenij added 1 commit

    added 1 commit

    • d3a6c99a - Add body 100% width for the preview, refactor the modalActivated watcher

    Compare with previous version

  • Eugenij added 21 commits

    added 21 commits

    • d3a6c99a...25a015b4 - 18 commits from branch pleroma:develop
    • dac075c6 - Fix mobile setting modal behavior: ensure the mobile browser address bar...
    • 61dd1a3b - Add body 100% width for the preview, refactor the modalActivated watcher, use...
    • 6ea840ff - Use bock-scroll-lock directive for the settings modal

    Compare with previous version

  • Eugenij added 2 commits

    added 2 commits

    • 2298ad00 - Use bock-scroll-lock directive for the settings modal
    • ab58d9f9 - Ensures the minimized modal is always 50px above the mobile browser bottom bar...

    Compare with previous version

  • Eugenij unmarked as a Work In Progress

    unmarked as a Work In Progress

  • Author Contributor

    Ready for final review, tested in Android and iOS (Chrome, Safari, Firefox)

  • Eugenij added 1 commit

    added 1 commit

    • 77d65d6c - Ensures the minimized modal is always 50px above the mobile browser bottom bar...

    Compare with previous version

  • I tried with 2 different android phones, firefox and chrome in both, works in all!

  • Shpuld Shpludson approved this merge request

    approved this merge request

  • mentioned in commit 9a10ad38

  • Please register or sign in to reply
    Loading