Browse Source

Fix bug with no opening shared media

Fix chat input height for handhelds
master
morethanwords 4 years ago
parent
commit
847951d60a
  1. 6
      src/components/sidebarRight/index.ts
  2. 8
      src/scss/partials/_chat.scss

6
src/components/sidebarRight/index.ts

@ -108,13 +108,13 @@ export class AppSidebarRight extends SidebarSlider { @@ -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

8
src/scss/partials/_chat.scss

@ -292,6 +292,14 @@ $chat-helper-size: 39px; @@ -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;
} */

Loading…
Cancel
Save