Improve default UI for small or zoomed screens

This commit is contained in:
yflory
2018-10-29 11:48:22 +01:00
parent 9d6c9dcf5e
commit db25d914ab
3 changed files with 28 additions and 6 deletions

View File

@@ -481,7 +481,7 @@ Messenger, MessengerUI, Messages) {
});
show();
Common.getAttribute(['toolbar', 'chat-drawer'], function (err, val) {
if (val === false || ($(window).height() < 800 && $(window).width() < 800)) {
if (val === false || ($(window).height() < 800 || $(window).width() < 800)) {
return void hide();
}
show();