aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-29 14:40:26 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-29 14:40:26 +0200
commit65affdc9b32629ab4692f77ffd4dff77e026b1dc (patch)
treeb8c21275bce2afc6cfddec4a02b496641fd912bd
parent1303fe0f9fe7c67764fb48cbb84fcb30e4a32b33 (diff)
downloadnextcloud-server-65affdc9b32629ab4692f77ffd4dff77e026b1dc.tar.gz
nextcloud-server-65affdc9b32629ab4692f77ffd4dff77e026b1dc.zip
make previews in files app smaller
-rw-r--r--lib/helper.php4
-rwxr-xr-xlib/preview.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/helper.php b/lib/helper.php
index 6153f318723..0853c792750 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -231,11 +231,11 @@ class OC_Helper {
* Returns the path to the preview of the file.
*/
public static function previewIcon($path) {
- return self::linkToRoute( 'core_ajax_preview', array('x' => 44, 'y' => 44, 'file' => urlencode($path) ));
+ return self::linkToRoute( 'core_ajax_preview', array('x' => 36, 'y' => 36, 'file' => urlencode($path) ));
}
public static function publicPreview_icon( $path, $token ) {
- return self::linkToRoute( 'core_ajax_public_preview', array('x' => 44, 'y' => 44, 'file' => urlencode($path), 't' => $token));
+ return self::linkToRoute( 'core_ajax_public_preview', array('x' => 36, 'y' => 36, 'file' => urlencode($path), 't' => $token));
}
/**
diff --git a/lib/preview.php b/lib/preview.php
index 03aaaceb9ca..c570a17e4a7 100755
--- a/lib/preview.php
+++ b/lib/preview.php
@@ -784,7 +784,7 @@ class PreviewManager {
public static function showErrorPreview() {
$path = \OC::$SERVERROOT . '/core/img/actions/delete.png';
$preview = new \OC_Image($path);
- $preview->preciseResize(44, 44);
+ $preview->preciseResize(36, 36);
$preview->show();
}
} \ No newline at end of file