[fix] Center Share Dropdown & Versions Dropdown
Center Share Dropdown & Versions Dropdown
This commit is contained in:
parent
4430eded81
commit
1dbbfcf3dc
|
@ -29,7 +29,7 @@ $(document).ready(function() {
|
||||||
var itemType = 'file';
|
var itemType = 'file';
|
||||||
}
|
}
|
||||||
var possiblePermissions = $(tr).data('permissions');
|
var possiblePermissions = $(tr).data('permissions');
|
||||||
var appendTo = $(tr).find('td.filename');
|
var appendTo = $(tr).find('.name');
|
||||||
// Check if drop down is already visible for a different file
|
// Check if drop down is already visible for a different file
|
||||||
if (OC.Share.droppedDown) {
|
if (OC.Share.droppedDown) {
|
||||||
if ($(tr).data('id') != $('#dropdown').attr('data-item-source')) {
|
if ($(tr).data('id') != $('#dropdown').attr('data-item-source')) {
|
||||||
|
|
|
@ -87,7 +87,7 @@ function createVersionsDropdown(filename, files) {
|
||||||
|
|
||||||
if (filename) {
|
if (filename) {
|
||||||
$('tr').filterAttr('data-file',filename).addClass('mouseOver');
|
$('tr').filterAttr('data-file',filename).addClass('mouseOver');
|
||||||
$(html).appendTo($('tr').filterAttr('data-file',filename).find('td.filename'));
|
$(html).appendTo($('tr').filterAttr('data-file',filename).find('.name'));
|
||||||
} else {
|
} else {
|
||||||
$(html).appendTo($('thead .share'));
|
$(html).appendTo($('thead .share'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
border-bottom-right-radius: 5px;
|
border-bottom-right-radius: 5px;
|
||||||
box-shadow:0 1px 1px #777;
|
box-shadow:0 1px 1px #777;
|
||||||
display:block;
|
display:block;
|
||||||
margin-right:7em;
|
|
||||||
position:absolute;
|
position:absolute;
|
||||||
right:0;
|
right:0;
|
||||||
|
top: 3.2em;
|
||||||
width:25em;
|
width:25em;
|
||||||
z-index:500;
|
z-index:500;
|
||||||
padding:1em;
|
padding:1em;
|
||||||
|
|
Loading…
Reference in New Issue