Hide editor toolbars by default when using a small screen

This commit is contained in:
yflory
2018-03-07 17:34:55 +01:00
parent f45023ed1f
commit 7a70d69d8e
4 changed files with 6 additions and 3 deletions

View File

@@ -400,7 +400,7 @@ define([
});
show();
Common.getAttribute(['toolbar', 'userlist-drawer'], function (err, val) {
if (val === false) { return void hide(); }
if (val === false || $(window).height() < 800) { return void hide(); }
show();
});