diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-01-29 15:28:57 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-01-29 15:28:57 +0100 |
commit | 5a869732d1e3bff7e2c1afdb7b15c77c31b4b1cc (patch) | |
tree | cfaa7f39350286f921dfdfe52192a5026ff639fe | |
parent | d310df505c0de1ed0ba4067a0c8304b8a675fa8c (diff) | |
download | nextcloud-server-5a869732d1e3bff7e2c1afdb7b15c77c31b4b1cc.tar.gz nextcloud-server-5a869732d1e3bff7e2c1afdb7b15c77c31b4b1cc.zip |
adjust file type icon placement for when no preview can be generated
-rw-r--r-- | apps/files_sharing/css/mobile.css | 4 | ||||
-rw-r--r-- | apps/files_sharing/css/public.css | 5 | ||||
-rw-r--r-- | apps/files_sharing/templates/public.php | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/apps/files_sharing/css/mobile.css b/apps/files_sharing/css/mobile.css index 3c06d0650e3..3312983b644 100644 --- a/apps/files_sharing/css/mobile.css +++ b/apps/files_sharing/css/mobile.css @@ -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 { diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css index 87e3ed78e1a..21f0c82b829 100644 --- a/apps/files_sharing/css/public.css +++ b/apps/files_sharing/css/public.css @@ -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 */ } diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 2f9c7246be5..5804f606d9f 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -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"> |