slightly change the way fullscreen works and bring it to mod mail
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user