From 50d9b2934742ad9fb0dc8354d405789e3c14cd00 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 1 Apr 2016 00:16:39 +0200 Subject: slightly change the way fullscreen works and bring it to mod mail --- view/js/main.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'view/js/main.js') diff --git a/view/js/main.js b/view/js/main.js index d6d1238d4..4e99bf1aa 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1454,13 +1454,15 @@ function zid(s) { function makeFullScreen(full) { if(typeof full=='undefined' || full == true) { - $('#fullscreen, aside').hide(); - $('#inline').show(); + $('#fullscreen-btn, header, nav, aside').hide(); + $('main').css({'width': '100%', 'max-width': 'none'}); + $('#inline-btn').show(); $('.generic-content-wrapper').addClass('fullscreen'); } else { - $('#fullscreen, aside').show(); - $('#inline').hide(); + $('#fullscreen-btn, header, nav, aside').show(); + $('main').removeAttr('style'); + $('#inline-btn').hide(); $('.generic-content-wrapper').removeClass('fullscreen'); } } -- cgit v1.2.3