Add padding to the reshared text

This commit is contained in:
Michael Gapczynski 2012-08-24 11:25:20 -04:00
parent fedb3641f9
commit 7168fa4b05
2 changed files with 4 additions and 3 deletions

View File

@ -2,10 +2,11 @@
This file is licensed under the Affero General Public License version 3 or later.
See the COPYING-README file. */
#dropdown { display:block; position:absolute; z-index:500; width:16em; right:0; margin-right:7em; background:#eee; padding:1em;
#dropdown { display:block; position:absolute; z-index:500; width:19em; right:0; margin-right:7em; background:#eee; padding:1em;
-moz-box-shadow:0 1px 1px #777; -webkit-box-shadow:0 1px 1px #777; box-shadow:0 1px 1px #777;
-moz-border-radius-bottomleft:1em; -webkit-border-bottom-left-radius:1em; border-bottom-left-radius:1em;
-moz-border-radius-bottomright:1em; -webkit-border-bottom-right-radius:1em; border-bottom-right-radius:1em; }
.reshare { padding-left:0.5em; }
#shareWithList { padding:0.5em; list-style-type: none; }
#shareWithList li { padding-top:0.1em; }
#dropdown label { font-weight:normal; }

View File

@ -95,9 +95,9 @@ OC.Share={
var html = '<div id="dropdown" class="drop" data-item-type="'+itemType+'" data-item-source="'+itemSource+'">';
if (data.reshare) {
if (data.reshare.share_type == OC.Share.SHARE_TYPE_GROUP) {
html += 'Shared with you and the group '+data.reshare.share_with+' by '+data.reshare.uid_owner;
html += '<span class="reshare">Shared with you and the group '+data.reshare.share_with+' by '+data.reshare.uid_owner+'</span>';
} else {
html += 'Shared with you by '+data.reshare.uid_owner;
html += '<span class="reshare">Shared with you by '+data.reshare.uid_owner+'</span>';
}
html += '<br />';
}