From b3f2771d3c5feff7c400b0026560c90a58054b2d Mon Sep 17 00:00:00 2001
From: Morris Jobke <hey@morrisjobke.de>
Date: Thu, 20 Oct 2016 13:10:26 +0200
Subject: [PATCH] Improve the styling

* remove the scrollbar (content did an overflow due to a min-width)
* have proper padding on the right too - padding is 15px on all sides for .oc-dialog

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
---
 core/css/styles.css        | 4 ++++
 core/js/jquery.ocdialog.js | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/core/css/styles.css b/core/css/styles.css
index aeb2a5a7363..94e60562ad8 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -786,6 +786,10 @@ a.bookmarklet { background-color:#ddd; border:1px solid #ccc; padding:5px;paddin
 	background-color:white;
 	width:100%;
 }
+#oc-dialog-filepicker-content #filestable.filelist {
+	/* prevent the filepicker to overflow */
+	min-width: initial;
+}
 
 #oc-dialog-filepicker-content .filelist td {
 	padding: 14px;
diff --git a/core/js/jquery.ocdialog.js b/core/js/jquery.ocdialog.js
index e26555bd63c..66c7d9bd7f1 100644
--- a/core/js/jquery.ocdialog.js
+++ b/core/js/jquery.ocdialog.js
@@ -184,11 +184,11 @@
 			if (content_height> 0) {
 				this.element.css({
 					height: content_height + 'px',
-					width: this.$dialog.innerWidth()-20 + 'px'
+					width: this.$dialog.innerWidth() - 30 + 'px'
 				});
 			} else {
 				this.element.css({
-					width : this.$dialog.innerWidth() - 20 + 'px'
+					width : this.$dialog.innerWidth() - 30 + 'px'
 				});
 			}
 		},
-- 
GitLab