mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-18 05:20:43 +01:00
fix: Generate preview with proper aspect ratio for templates
Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
parent
8c21f5edd7
commit
920cf96886
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class CollaboraTemplateProvider implements ICustomTemplateProvider {
|
|||
|
||||
return array_map(function (File $file) {
|
||||
$template = new Template(CollaboraTemplateProvider::class, (string)$file->getId(), $file);
|
||||
$template->setCustomPreviewUrl($this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.getPreview', ['fileId' => $file->getId()]));
|
||||
$template->setCustomPreviewUrl($this->urlGenerator->linkToRouteAbsolute('richdocuments.templates.getPreview', ['fileId' => $file->getId(), 'a' => true]));
|
||||
return $template;
|
||||
}, $collaboraTemplates);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue