mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 16:36:15 +00:00
[mobile] redesigned big modal popups
This commit is contained in:
@@ -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});
|
||||
|
@@ -20,11 +20,18 @@ define([
|
||||
|
||||
this.render();
|
||||
this.$('.op-target').css({'max-width':280}); // for long repo name
|
||||
this.$el.modal();
|
||||
$("#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.$('.js-tabs').tabs();
|
||||
|
||||
var downloadLinks = new DownloadLinks({repo_id: this.repo_id});
|
||||
|
Reference in New Issue
Block a user