From f5042956ce11bd26ae4d09c83b4cdb76159f110b Mon Sep 17 00:00:00 2001 From: llj Date: Mon, 22 Aug 2016 15:15:55 +0800 Subject: [PATCH] [share/perm popup] fix --- media/css/seahub.css | 36 ++++++++----------- seahub/templates/js/sysadmin-templates.html | 2 +- seahub/templates/js/templates.html | 12 +++---- .../templates/snippets/file_share_popup.html | 2 +- static/scripts/app/views/share.js | 2 +- 5 files changed, 24 insertions(+), 30 deletions(-) diff --git a/media/css/seahub.css b/media/css/seahub.css index 3468fb43eb..1c0cd19a30 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -740,9 +740,15 @@ textarea:-moz-placeholder {/* for FF */ background:#feac74; color:#fff; } +.left-right-tabs-content { + width:550px; + padding:0 1.4em 1em; + min-height:150px; + max-height:250px; + overflow:auto; +} .left-right-tabs .tabs-panel { - padding-top:0; - min-width:400px; + padding:0; } /**** side-tabnav ****/ .side-textnav .hd, @@ -2387,13 +2393,6 @@ button.sf-dropdown-toggle:focus { padding:2px; } /* file/dir share popup */ -#repo-folder-perm-popup, -#repo-share-link-admin-dialog, -#folder-perm-popup, -#file-share, -#share-popup { - min-height:200px; -} #file-share .tip, #share-popup .tip { max-width:400px; @@ -3175,15 +3174,7 @@ button.sf-dropdown-toggle:focus { } /* user & group folder perm */ -#share-popup .tabs-panel, -#folder-perm-tabs .tabs-panel, -#repo-shared-links .tabs-panel, -#repo-folder-perm .tabs-panel { - width:550px; - max-height:250px; - overflow:auto; -} -#repo-folder-perm .tabs-panel {/* for the case that the scrollbar appears */ +#repo-folder-perm .left-right-tabs-content {/* for the case that the scrollbar appears */ width:630px; padding-right:0; } @@ -3192,12 +3183,15 @@ button.sf-dropdown-toggle:focus { } .repo-folder-perm-folder-path { width:150px; - padding:1px 33px 1px 5px; + padding:3px 33px 3px 5px; + border:1px solid #ddd; + border-radius:2px; + margin:0; } .repo-folder-perm-add-folder { position:absolute; right:0; - top:4px; + top:1px; width:29px; height:28px; line-height:28px; @@ -3209,7 +3203,7 @@ button.sf-dropdown-toggle:focus { margin:0; } .repo-folder-perm-content { - width:610px; /* for the table in it. */ + width:612px; /* for the table in it. */ } #share-popup .share-permission-select, .folder-perm-select { diff --git a/seahub/templates/js/sysadmin-templates.html b/seahub/templates/js/sysadmin-templates.html index c9b6e305c1..aabff0af63 100644 --- a/seahub/templates/js/sysadmin-templates.html +++ b/seahub/templates/js/sysadmin-templates.html @@ -607,7 +607,7 @@
  • {% trans "Share to group" %}
  • -
    +
    diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html index ae698ccddb..98a51459f8 100644 --- a/seahub/templates/js/templates.html +++ b/seahub/templates/js/templates.html @@ -438,7 +438,7 @@ <% } %> -
    +
    <% if (!repo_encrypted && can_generate_share_link) { %>
    @@ -1233,7 +1233,7 @@ <% } %> -
    +
    <% if (can_generate_share_link) { %>
    @@ -1308,7 +1308,7 @@
  • {% trans "Group Permission" %}
  • -
    +
    @@ -1330,7 +1330,7 @@
    - @@ -1376,7 +1376,7 @@ - diff --git a/seahub/templates/snippets/file_share_popup.html b/seahub/templates/snippets/file_share_popup.html index 3ba70ad363..787e03c5d4 100644 --- a/seahub/templates/snippets/file_share_popup.html +++ b/seahub/templates/snippets/file_share_popup.html @@ -6,7 +6,7 @@
  • {% trans "Download Link" %}
  • -
    +