]> source.dussan.org Git - nextcloud-server.git/commitdiff
adjust file type icon placement for when no preview can be generated
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 29 Jan 2014 14:28:57 +0000 (15:28 +0100)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 29 Jan 2014 14:28:57 +0000 (15:28 +0100)
apps/files_sharing/css/mobile.css
apps/files_sharing/css/public.css
apps/files_sharing/templates/public.php

index 3c06d0650e3b29303aacae0e7c3fabb48d5ea8a6..3312983b644b84432369c13582e9e22b27a91358 100644 (file)
@@ -20,6 +20,10 @@ table td.filename .nametext {
        padding: 0;
        margin-bottom: 35px;
 }
+/* some margin for the file type icon */
+#imgframe .publicpreview {
+       margin-top: 32px;
+}
 
 /* always show actions on mobile */
 #fileList a.action {
index 87e3ed78e1ae5e6dede73dfdaa8c2291fc6e72b8..21f0c82b829adc7ea56e9ce64658826d19eead84 100644 (file)
@@ -71,6 +71,11 @@ p.info a {
        max-width:100%;
 }
 
+/* some margin for the file type icon */
+#imgframe .publicpreview {
+       margin-top: 10%;
+}
+
 thead {
        padding-left: 0 !important; /* fixes multiselect bar offset on shared page */
 }
index 2f9c7246be56ee25f94cb584577d6db4260d55b3..5804f606d9f08bb54292861b20f018997b58d4a4 100644 (file)
@@ -34,7 +34,7 @@
                                </div>
                        <?php else: ?>
                                <div id="imgframe">
-                                       <img src="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => 500, 'y' => 500, 'file' => urlencode($_['directory_path']), 't' => $_['dirToken']))); ?>" class="publicpreview"/>
+                                       <img src="<?php p(OCP\Util::linkToRoute( 'core_ajax_public_preview', array('x' => 128, 'y' => 128, 'file' => urlencode($_['directory_path']), 't' => $_['dirToken']))); ?>" class="publicpreview"/>
                                </div>
                        <?php endif; ?>
                        <div class="directDownload">