Skip to content

Commit

Permalink
fix: use data-src for holder.js powered placeholders
Browse files Browse the repository at this point in the history
this way, vite will leave it alone so we prevent an error in the built
module
  • Loading branch information
sgfost committed Jun 19, 2023
1 parent 8c6541b commit f0a8920
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/ProfileEditForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<img
class="mt-3 d-block rounded img-fluid img-thumbnail"
alt="Click to edit"
src="holder.js/150x150?text=Click to edit"
data-src="holder.js/150x150?text=Click to edit"
v-else
/>
</label>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/ReviewInvitations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<img
v-else
class="d-block img-thumbnail"
src="holder.js/100x100?text=No Picture Available"
data-src="holder.js/100x100?text=No Picture Available"
alt="No Picture Available"
/>
</div>
Expand Down Expand Up @@ -55,7 +55,7 @@
<img
v-else
class="d-block img-thumbnail"
src="holder.js/100x100?text=No Picture Available"
data-src="holder.js/100x100?text=No Picture Available"
alt="No Picture Available"
/>
</div>
Expand Down

0 comments on commit f0a8920

Please sign in to comment.