Clean the UI on first use of a pad (hide chat and reduce help)

This commit is contained in:
yflory
2019-03-28 11:41:59 +01:00
parent 7d4589bdb0
commit 723631c78c
3 changed files with 15 additions and 5 deletions

View File

@@ -1173,7 +1173,9 @@ define([
common.getAttribute(['hideHelp', type], function (err, val) {
//if ($(window).height() < 800 || $(window).width() < 800) { return void toggleHelp(true); }
if (val === true) { return void toggleHelp(true); }
if (!val && ($(window).height() < 800 || $(window).width() < 800)) {
// Note: Help is always hidden by default now, to avoid displaying to many things in the UI
// This is why we have (true || ...)
if (!val && (true || $(window).height() < 800 || $(window).width() < 800)) {
return void showMore();
}
});