mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-05 04:28:10 +00:00
thumbnail placeholder fix
This commit is contained in:
@@ -2,16 +2,13 @@
|
|||||||
<section class="train-image-section">
|
<section class="train-image-section">
|
||||||
<div class="train-image__content" :class="{ sponsor: store.chosenVehicle?.isSponsorsOnly }">
|
<div class="train-image__content" :class="{ sponsor: store.chosenVehicle?.isSponsorsOnly }">
|
||||||
<img
|
<img
|
||||||
v-if="store.chosenVehicle"
|
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
:src="getThumbnailURL(store.chosenVehicle.type, 'small')"
|
:src="store.chosenVehicle ? getThumbnailURL(store.chosenVehicle.type, 'small') : '/images/placeholder.jpg'"
|
||||||
@click="onImageClick"
|
@click="onImageClick"
|
||||||
@keydown.enter="onImageClick"
|
@keydown.enter="onImageClick"
|
||||||
@error="onImageError"
|
@error="onImageError"
|
||||||
type="image/jpeg"
|
type="image/jpeg"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<img v-else src="/images/placeholder.jpg" alt="placeholder" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="train-image__info" v-if="store.chosenVehicle">
|
<div class="train-image__info" v-if="store.chosenVehicle">
|
||||||
|
|||||||
Reference in New Issue
Block a user