Skip to content

Commit

Permalink
feat: improve skeleton layout
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jul 21, 2023
1 parent 504087c commit 5245016
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pages/s/[id]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,9 @@ async function submit() {
<ClientOnly>
<!-- Need ClientOnly if not reading localStorage will cause hydration mismatch -->
<template #fallback>
<div mt-15 flex flex-col gap4>
<Skeleton height="50px" />
<Skeleton height="75px" />
<Skeleton height="500px" />
<div v-for="(_, idx) in survey.questions" :key="idx" mt-15 flex flex-col gap4>
<Skeleton height="30px" />
<Skeleton height="150px" />
</div>
</template>

Expand Down

0 comments on commit 5245016

Please sign in to comment.