mirror of
https://github.com/nextcloud/server.git
synced 2026-06-19 13:39:40 -04:00
make previews in files app smaller
This commit is contained in:
parent
1303fe0f9f
commit
65affdc9b3
2 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue