Create urlHelper that contains getCoverUrl

This commit is contained in:
aditya.chandel
2025-01-18 23:22:53 -07:00
parent 817ea3ddfa
commit 6beae77c35
13 changed files with 34 additions and 27 deletions
@@ -2,7 +2,7 @@
<div class="book-metadata-container flex-shrink-0" *ngIf="metadata$ | async as metadata">
<div class="flex flex-row w-full">
<img [src]="baseUrl + '/v1/book/' + metadata.bookId + '/cover?' + metadata?.coverUpdatedOn" class="book-cover placeholder" alt="Cover of {{ metadata.title }}" loading="lazy" width="225"/>
<img [src]="urlHelper.getCoverUrl(metadata.bookId, metadata?.coverUpdatedOn)" class="book-cover placeholder" alt="Cover of {{ metadata.title }}" loading="lazy" width="225"/>
<div class="pl-6 flex flex-col w-full space-y-4">
<div class="flex flex-row items-center justify-between">