1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

[mobile] redesigned big modal popups

This commit is contained in:
llj
2016-12-03 17:29:41 +08:00
parent a0ff7afaf8
commit 591ab5e517
9 changed files with 152 additions and 67 deletions

View File

@@ -24,8 +24,16 @@ define([
this.render();
this.$el.modal({focus: false});
$('#simplemodal-container').css({'width':'auto', 'height':'auto'});
if ($(window).width() >= 768) {
this.$el.modal({focus: false});
$('#simplemodal-container').css({'width':'auto', 'height':'auto'});
} else {
this.$el.css({
'width': $(window).width() - 50,
'height': $(window).height() - 50,
'overflow': 'auto'
}).modal({focus:false});
}
this.$("#share-tabs").tabs();