]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix styling of filepicker dialog
authorRobin Appelman <robin@icewind.nl>
Fri, 25 Nov 2016 19:49:50 +0000 (20:49 +0100)
committerRobin Appelman <robin@icewind.nl>
Fri, 25 Nov 2016 19:54:08 +0000 (20:54 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
core/css/jquery.ocdialog.css
core/css/styles.css
core/js/jquery.ocdialog.js

index d1a426945897f3c349c2bad753307b3e9fc6cb11..939c44f4d4e78051bbb8a8c396815d306dc986b0 100644 (file)
        background: #fff;
        margin-left: 12px;
 }
-.oc-dialog-content {
-       z-index: 1000;
-}
-.oc-dialog-separator {
-}
 .oc-dialog-buttonrow {
+       position: relative;
        display: block;
        background: transparent;
        right: 0;
        bottom: 0;
-       padding: 10px;
+       padding: 20px;
+       padding-bottom: 10px;
        box-sizing: border-box;
        width: 100%;
        background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
 .oc-dialog-buttonrow.onebutton button {
        float: right;
 }
+.oc-dialog-buttonrow:after {
+       visibility: hidden;
+       display: block;
+       font-size: 0;
+       content: " ";
+       clear: both;
+       height: 0;
+}
 
 .oc-dialog-close {
        position: absolute;
index 21583d6198cb2c219fae154fcad598f0c6a4af99..14bb75de87929cb25f25b335da32846d04f4c01b 100644 (file)
@@ -773,7 +773,7 @@ a.bookmarklet { background-color:#ddd; border:1px solid #ccc; padding:5px;paddin
        box-sizing: border-box;
        display: inline-block;
        overflow-y: auto;
-       height: 321px;
+       height: calc(100% + 20px); /** overflow under the button row */
        width: 100%;
        padding-bottom: 55px;
 }
index 66c7d9bd7f1ec7c36ee40b8637c0ba882b3c0a4d..9d1d58bdf64c5e84a91acfeac90ec30402e54178 100644 (file)
                                content_height -= this.$buttonrow.outerHeight(true);
                        }
                        this.parent = this.$dialog.parent().length > 0 ? this.$dialog.parent() : $('body');
-                       content_height = Math.min(content_height, this.parent.height()-20);
+                       if (this.parent.height() > 0) {
+                               content_height = Math.min(content_height, this.parent.height() - 20);
+                       }
                        if (content_height> 0) {
                                this.element.css({
                                        height: content_height + 'px',