Fix bug with no opening shared media

Fix chat input height for handhelds
This commit is contained in:
morethanwords 2020-10-31 21:26:46 +02:00
parent 47f41e1a45
commit 847951d60a
2 changed files with 11 additions and 3 deletions

View File

@ -108,13 +108,13 @@ export class AppSidebarRight extends SidebarSlider {
document.body.classList.toggle(RIGHT_COLUMN_ACTIVE_CLASSNAME, enable); document.body.classList.toggle(RIGHT_COLUMN_ACTIVE_CLASSNAME, enable);
//console.log('sidebar selectTab', enable, willChange); //console.log('sidebar selectTab', enable, willChange);
if(mediaSizes.isMobile) { //if(mediaSizes.isMobile) {
//appImManager._selectTab(active ? 1 : 2); //appImManager._selectTab(active ? 1 : 2);
appImManager.selectTab(active ? 1 : 2); appImManager.selectTab(active ? 1 : 2);
return new Promise(resolve => { 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 => { return new Promise(resolve => {
setTimeout(resolve, 200); // delay for third column open setTimeout(resolve, 200); // delay for third column open

View File

@ -292,6 +292,14 @@ $chat-helper-size: 39px;
outline: none; outline: none;
cursor: text; 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 { /* span.emoji {
font-size: .95rem; font-size: .95rem;
} */ } */