From de04501c9720a81759c66162e01d351aa82132b8 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 6 May 2015 11:15:48 +0200 Subject: [PATCH] add max-width of 600px to filepicker --- core/js/oc-dialogs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index afd7debb695..0692a9df5ca 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -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,