@@ -46,7 +46,7 @@ export default {
4646 <div v-if="isType('Audio')" class="w-full h-full cursor-pointer flex flex-col justify-between"
4747 @click.stop="refAudio?.player?.toggle()"
4848 >
49- <img src="/img/bg-audio.svg" class="absolute top-0 left-0 h-20 w-full">
49+ <img : src="store.assetUrl(' /img/bg-audio.svg') " class="absolute top-0 left-0 h-20 w-full">
5050
5151 <div class="mt-20 mb-12 flex-grow flex items-center">
5252 <svg class="mx-auto size-64 text-purple-600 dark:text-purple-400 mb-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -59,7 +59,8 @@ export default {
5959 <template v-else>
6060 <!-- Main Image - only show if rating is viewable -->
6161 <img v-if="selectedUrl && store.isRatingViewable(selectedArtifact)"
62- :src="selectedUrl"
62+ :src="store.assetUrl(selectedUrl)"
63+ :onerror="store.imgOnError(selectedUrl)"
6364 :alt="selectedArtifact.caption || generation.description || 'Generated image'"
6465 class="max-w-full max-h-full object-contain"
6566 :class="{ 'cursor-zoom-in': !store.prefs.zoomIn, 'cursor-zoom-out':store.prefs.zoomIn }"
@@ -100,7 +101,8 @@ export default {
100101 :class="{ 'ring-2 ring-blue-500': artifact.url === selectedUrl }"
101102 @click="selectedUrl = artifact.url">
102103 <img v-if="store.isRatingViewable(artifact)"
103- :src="artifact.url"
104+ :src="store.assetUrl(artifact.url)"
105+ :onerror="store.imgOnError(artifact.url)"
104106 :alt="'Artifact ' + artifact.id"
105107 class="w-full object-cover">
106108
0 commit comments