diff options
| author | Shpuld Shpludson <shp@cock.li> | 2020-08-06 09:53:24 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2020-08-06 09:53:24 +0000 |
| commit | 9a10ad38260cc4d1ef93a6988ef2cb0941080156 (patch) | |
| tree | 43abd13df222be80c67fa7e446a9b257da7d77c1 /src/components/settings_modal/settings_modal.scss | |
| parent | 7bd684670384b082d9b87a3a1eacf04dbce0267d (diff) | |
| parent | 77d65d6cecfae1bdbf5e5b7d8c882d39846b91f1 (diff) | |
Merge branch 'mobile-setting-modal-fix' into 'develop'
Mobile setting modal behavior fixes
Closes #908
See merge request pleroma/pleroma-fe!1200
Diffstat (limited to 'src/components/settings_modal/settings_modal.scss')
| -rw-r--r-- | src/components/settings_modal/settings_modal.scss | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/settings_modal/settings_modal.scss b/src/components/settings_modal/settings_modal.scss index 0da4d9a8..90446b36 100644 --- a/src/components/settings_modal/settings_modal.scss +++ b/src/components/settings_modal/settings_modal.scss @@ -13,6 +13,13 @@ * - 50px - leaving tiny amount of space so that titlebar + tiny amount of modal is visible */ transform: translateY(calc(((100vh - 100%) / 2 + 100%) - 50px)); + + @media all and (max-width: 800px) { + /* For mobile, the modal takes 100% of the available screen. + This ensures the minimized modal is always 50px above the browser bottom bar regardless of whether or not it is visible. + */ + transform: translateY(calc(100% - 50px)); + } } } @@ -27,7 +34,7 @@ @media all and (max-width: 800px) { max-width: 100vw; - height: 100vh; + height: 100%; } >.panel-body { |
