From 70c15653a98cf28305aeaabd9688a98141949145 Mon Sep 17 00:00:00 2001 From: or-else Date: Tue, 9 Nov 2021 09:55:55 -0800 Subject: [PATCH] visual tweaks for mobile view and breakage in send message panel --- css/base.css | 62 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/css/base.css b/css/base.css index 45f2835d..aa767461 100644 --- a/css/base.css +++ b/css/base.css @@ -546,28 +546,6 @@ div.trusted-badge { height: 100%; } -@media (max-width: 960px) { - #mountPoint { - padding: 0; - } -} - -@media (max-width: 640px) { - #app-container { - width: 100%; - border-radius: 0; - box-shadow: none; - } - - #sidepanel { - width: 100%; - } - - #info-view { - width: 100%; - } -} - /* Generic announcement text, centered vertically and horizontally */ .center-medium-text { width: 100%; @@ -1379,7 +1357,7 @@ img.channel { padding: 0.4rem 0.4rem 0.4rem 0.6rem; background-color: #eceff1; z-index: 2; - height: 4rem; + min-height: 4rem; } #send-message-panel #writing-disabled { @@ -2561,3 +2539,41 @@ ul.tabbar li.active > a { .forward-dialog .scrollable-panel { height: 80%; } + +/* + Mobile styles. + */ + +@media (max-width: 960px) { + #mountPoint { + padding: 0; + } +} + +@media (max-width: 640px) { + #app-container { + width: 100%; + border-radius: 0; + box-shadow: none; + } + + #sidepanel { + width: 100%; + } + + #info-view { + width: 100%; + } + + /* Bottom sheet rathar than a dialog */ + .forward-dialog { + border-radius: 0.3rem 0.3rem 0 0; + margin: auto 0 0 0; + width: 100%; + } + + /* Must make it a bit visible on mobile because there is no :hover */ + li .menuTrigger { + opacity: 0.3; + } +}