summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-05-06 11:15:48 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-05-06 11:15:48 +0200
commitde04501c9720a81759c66162e01d351aa82132b8 (patch)
tree1d9f07d113ef7fdc53a73e2dfdf6b80177730fb9 /core/js
parente0640a0232236854e08a7b8bb57958229ae21f44 (diff)
downloadnextcloud-server-de04501c9720a81759c66162e01d351aa82132b8.tar.gz
nextcloud-server-de04501c9720a81759c66162e01d351aa82132b8.zip
add max-width of 600px to filepicker
Diffstat (limited to 'core/js')
-rw-r--r--core/js/oc-dialogs.js3
1 files changed, 2 insertions, 1 deletions
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,