Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-04-16 20:20:55 +0400
committerLukas Reschke <lukas@statuscode.ch>2014-04-16 20:20:55 +0400
commit530d5dbf134b42f9bcbbf2b8ecedad3d9b95352b (patch)
treea3e8dbf1cb30f819d96232692807b34799b1d3ab
parentbc5ef6ecef2c35f11dc0339c113177c0879ce5ea (diff)
Make preview bigger
-rwxr-xr-xcss/style.css10
-rw-r--r--js/documents.js2
2 files changed, 7 insertions, 5 deletions
diff --git a/css/style.css b/css/style.css
index 742137e0..968037c0 100755
--- a/css/style.css
+++ b/css/style.css
@@ -27,7 +27,6 @@
background-position: 50%;
}
-
.add-document a.add {
border-bottom: 1px solid #fff;
}
@@ -79,12 +78,15 @@
height: 200px;
width: 200px;
background-repeat: no-repeat;
- background-size: 64px;
- background-position: 68px;
+ background-size: 200px;
+ border: 1px solid grey;
}
.document label {
+ background: lightgray;
+ border-bottom: 1px solid grey;
+ opacity: 0.6;
position: absolute;
- bottom: 5px;
+ bottom: 0px;
width: 100%;
font-weight: normal;
text-overflow: ellipsis;
diff --git a/js/documents.js b/js/documents.js
index e8977da1..82df69ee 100644
--- a/js/documents.js
+++ b/js/documents.js
@@ -614,7 +614,7 @@ var documentsMain = {
a.attr('href', OC.generateUrl('apps/files/download{file}',{file:document.path}));
a.find('label').text(document.name);
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) {
$('.documentslist').append(docElem);
docElem.show();