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); }