File tree Expand file tree Collapse file tree 5 files changed +26
-6
lines changed
Expand file tree Collapse file tree 5 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 5050 height =" 95"
5151 :src =" userImage"
5252 :alt =" `${userName || 'User'}'s avatar`"
53- onerror =" this.src='/storage/avatars/default.jpg';this.onerror=null;"
53+ onerror ="
54+ this.src = '/storage/avatars/default.jpg'
55+ this.onerror = null
56+ "
5457 />
5558 <div
5659 class =" absolute bottom-0 right-0 rounded-full bg-white shadow-xl border p-2 border-gray-300 inline-flex items-center justify-center"
Original file line number Diff line number Diff line change 101101 :src =" video.media.thumbnail"
102102 :alt =" video.caption"
103103 class =" w-16 h-16 rounded-lg object-cover flex-shrink-0"
104- onerror =" this.src='/storage/videos/video-placeholder.jpg';this.onerror=null;"
104+ onerror ="
105+ this.src = '/storage/videos/video-placeholder.jpg'
106+ this.onerror = null
107+ "
105108 />
106109 <div class =" flex-1 min-w-0" >
107110 <p
Original file line number Diff line number Diff line change 8585 :src =" post.media.thumbnail"
8686 :alt =" `${post.caption} thumbnail`"
8787 class =" w-12 h-12 rounded-lg object-cover"
88- onerror =" this.src='/storage/videos/video-placeholder.jpg';this.onerror=null;"
88+ onerror ="
89+ this.src = '/storage/videos/video-placeholder.jpg'
90+ this.onerror = null
91+ "
8992 />
9093 <div >
9194 <div
Original file line number Diff line number Diff line change 3535 :src =" playlist.cover_image"
3636 :alt =" `${playlist.name} cover`"
3737 class =" w-full h-full object-cover"
38- onerror =" this.style.display='none';this.parentElement.innerHTML='<div class=\'w-full h-full flex items-center justify-center\'><svg class=\'w-16 h-16 text-gray-400\' fill=\'none\' stroke=\'currentColor\' viewBox=\'0 0 24 24\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10\'></path></svg></div>'"
38+ onerror ="
39+ this.style.display = 'none'
40+ this.parentElement.innerHTML =
41+ '<div class=\'w-full h-full flex items-center justify-center\'><svg class=\'w-16 h-16 text-gray-400\' fill=\'none\' stroke=\'currentColor\' viewBox=\'0 0 24 24\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10\'></path></svg></div>'
42+ "
3943 />
4044 <div v-else class =" w-full h-full flex items-center justify-center" >
4145 <QueueListIcon class =" w-16 h-16 text-gray-400" />
171175 :src =" video.media.thumbnail"
172176 :alt =" video.caption"
173177 class =" w-12 h-20 rounded-lg object-cover flex-shrink-0"
174- onerror =" this.src='/storage/videos/video-placeholder.jpg';this.onerror=null;"
178+ onerror ="
179+ this.src = '/storage/videos/video-placeholder.jpg'
180+ this.onerror = null
181+ "
175182 />
176183
177184 <div class =" flex-1 min-w-0" >
Original file line number Diff line number Diff line change 9696 :src =" playlist.cover_image"
9797 :alt =" `${playlist.name} cover`"
9898 class =" w-full h-full object-cover"
99- onerror =" this.style.display='none';this.parentElement.innerHTML='<div class=\'w-full h-full flex items-center justify-center\'><svg class=\'w-8 h-8 text-gray-400\' fill=\'none\' stroke=\'currentColor\' viewBox=\'0 0 24 24\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10\'></path></svg></div>'"
99+ onerror ="
100+ this.style.display = 'none'
101+ this.parentElement.innerHTML =
102+ '<div class=\'w-full h-full flex items-center justify-center\'><svg class=\'w-8 h-8 text-gray-400\' fill=\'none\' stroke=\'currentColor\' viewBox=\'0 0 24 24\'><path stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10\'></path></svg></div>'
103+ "
100104 />
101105 <div
102106 v-else
You can’t perform that action at this time.
0 commit comments