1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +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

@@ -21,6 +21,13 @@ define([
this.render();
this.$('.op-target').css({'max-width':280}); // for long repo name
if ($(window).width() < 768) {
this.$el.css({
'width': $(window).width() - 50,
'height': $(window).height() - 50,
'overflow': 'auto'
});
}
this.$el.modal({
focus: false,
onClose: function() {
@@ -28,10 +35,12 @@ define([
$.modal.close();
}
});
$("#simplemodal-container").css({
'width':'auto',
'height':'auto'
});
if ($(window).width() >= 768) {
$("#simplemodal-container").css({
'width':'auto',
'height':'auto'
});
}
this.$('.js-tabs').tabs();
this.userPerm = new UserFolderPerm({repo_id: this.repo_id});