Make preview bigger

pull/1/head
Lukas Reschke 10 years ago
parent bc5ef6ecef
commit 530d5dbf13

@ -27,7 +27,6 @@
background-position: 50%; background-position: 50%;
} }
.add-document a.add { .add-document a.add {
border-bottom: 1px solid #fff; border-bottom: 1px solid #fff;
} }
@ -79,12 +78,15 @@
height: 200px; height: 200px;
width: 200px; width: 200px;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 64px; background-size: 200px;
background-position: 68px; border: 1px solid grey;
} }
.document label { .document label {
background: lightgray;
border-bottom: 1px solid grey;
opacity: 0.6;
position: absolute; position: absolute;
bottom: 5px; bottom: 0px;
width: 100%; width: 100%;
font-weight: normal; font-weight: normal;
text-overflow: ellipsis; text-overflow: ellipsis;

@ -614,7 +614,7 @@ var documentsMain = {
a.attr('href', OC.generateUrl('apps/files/download{file}',{file:document.path})); a.attr('href', OC.generateUrl('apps/files/download{file}',{file:document.path}));
a.find('label').text(document.name); a.find('label').text(document.name);
a.css('background-image', 'url("'+document.icon+'")'); a.css('background-image', 'url("'+document.icon+'")');
Files.lazyLoadPreview(document.path, document.mimetype, function(node){ return function(path){node.css('background-image', 'url("'+ path +'")');}; }(a), 32, 40, document.etag, document.icon); Files.lazyLoadPreview(document.path, document.mimetype, function(node){ return function(path){node.css('background-image', 'url("'+ path +'")');}; }(a), 200, 200, document.etag, document.icon);
//function(path, mime, ready, width, height, etag) { //function(path, mime, ready, width, height, etag) {
$('.documentslist').append(docElem); $('.documentslist').append(docElem);
docElem.show(); docElem.show();

Loading…
Cancel
Save