slightly change the way fullscreen works and bring it to mod mail
This commit is contained in:
parent
90a5ba01a3
commit
50d9b29347
@ -1,5 +1,4 @@
|
|||||||
#chatroom-new,
|
#chatroom-new {
|
||||||
#inline {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,7 +30,6 @@ aside {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#chatTopBar {
|
#chatTopBar {
|
||||||
float: left;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
@ -1454,13 +1454,15 @@ function zid(s) {
|
|||||||
|
|
||||||
function makeFullScreen(full) {
|
function makeFullScreen(full) {
|
||||||
if(typeof full=='undefined' || full == true) {
|
if(typeof full=='undefined' || full == true) {
|
||||||
$('#fullscreen, aside').hide();
|
$('#fullscreen-btn, header, nav, aside').hide();
|
||||||
$('#inline').show();
|
$('main').css({'width': '100%', 'max-width': 'none'});
|
||||||
|
$('#inline-btn').show();
|
||||||
$('.generic-content-wrapper').addClass('fullscreen');
|
$('.generic-content-wrapper').addClass('fullscreen');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$('#fullscreen, aside').show();
|
$('#fullscreen-btn, header, nav, aside').show();
|
||||||
$('#inline').hide();
|
$('main').removeAttr('style');
|
||||||
|
$('#inline-btn').hide();
|
||||||
$('.generic-content-wrapper').removeClass('fullscreen');
|
$('.generic-content-wrapper').removeClass('fullscreen');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1519,19 +1519,27 @@ nav .dropdown-menu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.generic-content-wrapper.fullscreen {
|
.generic-content-wrapper.fullscreen {
|
||||||
position: fixed;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
|
border: 0px;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
z-index: 10000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.generic-content-wrapper.fullscreen .section-title-wrapper {
|
.generic-content-wrapper.fullscreen .section-title-wrapper {
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.generic-content-wrapper.fullscreen .section-content-wrapper {
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#inline-btn {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.chatroom-index-row:hover td,
|
.chatroom-index-row:hover td,
|
||||||
.locs-index-row:hover td,
|
.locs-index-row:hover td,
|
||||||
[id^="cloud-index-"]:hover td,
|
[id^="cloud-index-"]:hover td,
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<div class="generic-content-wrapper">
|
<div class="generic-content-wrapper">
|
||||||
<div class="section-title-wrapper">
|
<div class="section-title-wrapper">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
<button id="fullscreen" type="button" class="btn btn-default btn-xs" onclick="makeFullScreen(); adjustFullscreenTopBarHeight();"><i class="icon-resize-full"></i></button>
|
<button id="fullscreen-btn" type="button" class="btn btn-default btn-xs" onclick="makeFullScreen(); adjustFullscreenTopBarHeight();"><i class="icon-resize-full"></i></button>
|
||||||
<button id="inline" type="button" class="btn btn-default btn-xs" onclick="makeFullScreen(false); adjustInlineTopBarHeight();"><i class="icon-resize-small"></i></button>
|
<button id="inline-btn" type="button" class="btn btn-default btn-xs" onclick="makeFullScreen(false); adjustInlineTopBarHeight();"><i class="icon-resize-small"></i></button>
|
||||||
{{if $is_owner}}
|
{{if $is_owner}}
|
||||||
<form id="chat-destroy" method="post" action="chat">
|
<form id="chat-destroy" method="post" action="chat">
|
||||||
<input type="hidden" name="room_name" value="{{$room_name}}" />
|
<input type="hidden" name="room_name" value="{{$room_name}}" />
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
<div class="generic-content-wrapper">
|
<div class="generic-content-wrapper">
|
||||||
<div class="section-title-wrapper">
|
<div class="section-title-wrapper">
|
||||||
|
<div class="pull-right">
|
||||||
|
<button id="fullscreen-btn" type="button" class="btn btn-default btn-xs" onclick="makeFullScreen();"><i class="icon-resize-full"></i></button>
|
||||||
|
<button id="inline-btn" type="button" class="btn btn-default btn-xs" onclick="makeFullScreen(false);"><i class="icon-resize-small"></i></button>
|
||||||
{{if $mailbox == 'combined'}}
|
{{if $mailbox == 'combined'}}
|
||||||
<a class="btn btn-xs btn-danger pull-right" href="mail/{{$mailbox}}/dropconv/{{$thread_id}}" onclick="return confirmDelete();"><i class="icon-trash"></i> {{$delete}}</a>
|
<a class="btn btn-xs btn-danger" href="mail/{{$mailbox}}/dropconv/{{$thread_id}}" onclick="return confirmDelete();"><i class="icon-trash"></i> {{$delete}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</div>
|
||||||
<h2>{{$prvmsg_header}}</h2>
|
<h2>{{$prvmsg_header}}</h2>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user