Skip to content

Commit

Permalink
Merge pull request #38 from Brian-E-Nguyen/team-card
Browse files Browse the repository at this point in the history
TeamMemberImage: lazy source and loading placehold
  • Loading branch information
BrianENguyen authored Dec 3, 2021
2 parents 62c8a6d + 411fb9b commit bb264f1
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/components/Team/TeamMemberImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,35 @@
<v-img
class="member_profile_picture_popup"
:src="src"
:lazy-src="src"
aspect-ratio="1"
@click="dialog = false"
/>
>
<template v-slot:placeholder>
<v-row class="fill-height ma-0" align="center" justify="center">
<v-progress-circular
indeterminate
color="grey lighten-5"
></v-progress-circular>
</v-row> </template
></v-img>
<template v-slot:activator="{ on, attrs }">
<v-img
:src="src"
:lazy-src="src"
aspect-ratio="1"
class="member_profile_picture"
v-bind="attrs"
v-on="on"
/>
>
<template v-slot:placeholder>
<v-row class="fill-height ma-0" align="center" justify="center">
<v-progress-circular
indeterminate
color="grey lighten-5"
></v-progress-circular>
</v-row> </template
></v-img>
</template>
</v-dialog>
</template>
Expand Down

0 comments on commit bb264f1

Please sign in to comment.