From c71cf72eea0fe8cd8d5af2cd9b5922cce5884cab Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 7 Apr 2022 16:39:32 +0300 Subject: [PATCH 1/2] fix mobile view --- src/App.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/App.scss b/src/App.scss index 87ef1f06c..dd3d8cbbd 100644 --- a/src/App.scss +++ b/src/App.scss @@ -255,11 +255,9 @@ nav { margin: 0; } - .underlay { - display: none; - } - - #sidebar { + .underlay, + #sidebar, + #notifs-column { display: none; } } From 6109fab14e4dac3a85ffa51ddfcd7e3aaef5149a Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 8 Apr 2022 10:17:23 +0300 Subject: [PATCH 2/2] cleanup, fix some things, try to disable scrollbars on mobile --- src/App.scss | 26 +++++++++++++--------- src/App.vue | 2 +- src/components/chat/chat.scss | 9 -------- src/components/media_modal/media_modal.vue | 2 +- src/components/modal/modal.vue | 2 +- 5 files changed, 18 insertions(+), 23 deletions(-) diff --git a/src/App.scss b/src/App.scss index dd3d8cbbd..0deac2b14 100644 --- a/src/App.scss +++ b/src/App.scss @@ -116,7 +116,7 @@ nav { #content { overscroll-behavior-y: none; - overflow-y: auto; + overflow-y: scroll; overflow-x: hidden; position: sticky; } @@ -198,19 +198,23 @@ nav { margin-left: -2em; padding-left: 2.5em; - &:not(.-show-scrollbar) { - scrollbar-width: none; - margin-right: -2em; - padding-right: 2.5em; + // Only show custom scrollbars on devices which + // have a cursor/pointer to operate them + @media (pointer: fine) { + &:not(.-show-scrollbar) { + scrollbar-width: none; + margin-right: -2em; + padding-right: 2.5em; - &::-webkit-scrollbar { - display: block; - width: 0; + &::-webkit-scrollbar { + display: block; + width: 0; + } } - } - .panel-heading.-sticky { - top: -10px; + .panel-heading.-sticky { + top: -10px; + } } } } diff --git a/src/App.vue b/src/App.vue index 243a3314e..b5f6e7d36 100644 --- a/src/App.vue +++ b/src/App.vue @@ -41,8 +41,8 @@
-
+ .modal-view { - z-index: 1000; + z-index: 2000; position: fixed; top: 0; left: 0;