Skip to content

Commit

Permalink
improvement: skeleton loaders for project list
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutV committed Apr 16, 2024
1 parent c2d31ad commit f080d7d
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions frontend/src/components/projects/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,8 @@ const incomingProjects = computed<Project[] | null>(() => {
</template>
</template>
<template v-else>
<div
class="col-12 md:col-6 lg:col-4"
:class="'xl:col-' + 12 / cols"
v-for="index in cols"
:key="index"
>
<Skeleton height="25rem" />
<div class="col-12" v-for="index in cols" :key="index">
<Skeleton height="8rem" />
</div>
</template>
</div>
Expand Down Expand Up @@ -113,13 +108,8 @@ const incomingProjects = computed<Project[] | null>(() => {
</template>
</template>
<template v-else>
<div
class="col-12 md:col-6 lg:col-4"
:class="'xl:col-' + 12 / cols"
v-for="index in cols"
:key="index"
>
<Skeleton height="25rem" />
<div class="col-12" v-for="index in cols" :key="index">
<Skeleton height="20rem" />
</div>
</template>
</div>
Expand Down

0 comments on commit f080d7d

Please sign in to comment.