Fix rendering cover in shelf

This commit is contained in:
Robbie Antenesse 2020-06-15 23:32:39 -06:00
parent ef54c0241b
commit 080e194e27
1 changed files with 2 additions and 4 deletions

View File

@ -71,7 +71,7 @@ export const shelfView = (shelvesController, emit) => {
${__('shelves.owned_by')} ${__('shelves.owned_by')}
${shelf.user === null ${shelf.user === null
? __('shelves.you') ? __('shelves.you')
: `<a href="/profile?user=${shelf.user.handle}" title=${shelf.user.handle}>${shelf.user.name}</a>`} : html`<a href="/profile?user=${shelf.user.handle}" title="${shelf.user.handle}">${shelf.user.name}</a>`}
</span> </span>
</div> </div>
<div class="third sixth-700"> <div class="third sixth-700">
@ -87,9 +87,7 @@ export const shelfView = (shelvesController, emit) => {
return html`<article class="card"> return html`<article class="card">
<footer> <footer>
<div class="flex one twelve-700"> <div class="flex one twelve-700">
<div class="full sixth-700"> <img class="full sixth-700" src=${shelfItem.coverURL} alt="cover ${shelfItem.coverEdition}" />
<img src=${shelfItem.coverURL} alt="cover ${shelfItem.coverEdition}" />
</div>
<div class="full half-700"> <div class="full half-700">
<h3>${shelfItem.title}</h3> <h3>${shelfItem.title}</h3>
<span>${shelfItem.author}</span> <span>${shelfItem.author}</span>