From 79ed8c0c6d0d86ceba4c3432b2b95700ce35b20b Mon Sep 17 00:00:00 2001 From: Braun Patrik Date: Wed, 21 Jun 2017 11:33:21 +0200 Subject: [PATCH] fixing directory thumbnail error --- .../gallery/directory/directory.gallery.component.html | 4 ++-- .../app/gallery/directory/directory.gallery.component.ts | 8 ++++++-- frontend/app/gallery/gallery.component.html | 2 +- frontend/app/gallery/thumnailManager.service.ts | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/app/gallery/directory/directory.gallery.component.html b/frontend/app/gallery/directory/directory.gallery.component.html index 1e31d20d..5990b733 100644 --- a/frontend/app/gallery/directory/directory.gallery.component.html +++ b/frontend/app/gallery/directory/directory.gallery.component.html @@ -2,10 +2,10 @@ style="display: inline-block;"> -
+
+ [style.background-image]="getSanitizedThUrl()">
- \ No newline at end of file + diff --git a/frontend/app/gallery/thumnailManager.service.ts b/frontend/app/gallery/thumnailManager.service.ts index d728736c..61edf880 100644 --- a/frontend/app/gallery/thumnailManager.service.ts +++ b/frontend/app/gallery/thumnailManager.service.ts @@ -14,7 +14,7 @@ export class ThumbnailManagerService { constructor(private thumbnailLoader: ThumbnailLoaderService) { } - public getThumbnail(photo: Photo) { + public getThumbnail(photo: Photo): Thumbnail { return new Thumbnail(photo, this.thumbnailLoader); }