add max-width of 600px to filepicker

This commit is contained in:
Morris Jobke 2015-05-06 11:15:48 +02:00
parent e0640a0232
commit de04501c97
1 changed files with 2 additions and 1 deletions

View File

@ -207,7 +207,8 @@ var OCdialogs = {
self.$filePicker.ocdialog({
closeOnEscape: true,
width: (4/5)*$(document).width(),
// max-width of 600
width: Math.min((4/5)*$(document).width(), 600),
height: 420,
modal: modal,
buttons: buttonlist,