From 847951d60a64fb9940b3a14a9d0d853c3b7f93f1 Mon Sep 17 00:00:00 2001 From: morethanwords Date: Sat, 31 Oct 2020 21:26:46 +0200 Subject: [PATCH] Fix bug with no opening shared media Fix chat input height for handhelds --- src/components/sidebarRight/index.ts | 6 +++--- src/scss/partials/_chat.scss | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/sidebarRight/index.ts b/src/components/sidebarRight/index.ts index e9a0783a..0b218b9d 100644 --- a/src/components/sidebarRight/index.ts +++ b/src/components/sidebarRight/index.ts @@ -108,13 +108,13 @@ export class AppSidebarRight extends SidebarSlider { document.body.classList.toggle(RIGHT_COLUMN_ACTIVE_CLASSNAME, enable); //console.log('sidebar selectTab', enable, willChange); - if(mediaSizes.isMobile) { + //if(mediaSizes.isMobile) { //appImManager._selectTab(active ? 1 : 2); appImManager.selectTab(active ? 1 : 2); return new Promise(resolve => { - setTimeout(resolve, 250); // delay of slider animation + setTimeout(resolve, mediaSizes.isMobile ? 250 : 200); // delay of slider animation }); - } + //} return new Promise(resolve => { setTimeout(resolve, 200); // delay for third column open diff --git a/src/scss/partials/_chat.scss b/src/scss/partials/_chat.scss index 65d44618..a6437601 100644 --- a/src/scss/partials/_chat.scss +++ b/src/scss/partials/_chat.scss @@ -292,6 +292,14 @@ $chat-helper-size: 39px; outline: none; cursor: text; + @media only screen and (max-height: 30rem) { + max-height: unquote('max(39px, calc(100vh - 10rem))'); + } + + @include respond-to(handhelds) { + max-height: 10rem; + } + /* span.emoji { font-size: .95rem; } */