Skip to content

Commit

Permalink
Update frontend/src/components/VSkeleton/VGridSkeleton.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Nov 13, 2023
1 parent a252e00 commit 53499db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/components/VSkeleton/VGridSkeleton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ export default defineComponent({
return Math.floor(Math.random() * (max - min) + min)
}
// Calculate the default element count based on isForTab
const elementCount = computed(() => {
if (props.numElems) return props.numElems;
if (props.isForTab === "all") return 20;
if (props.isForTab === "image") return 30;
return 8;
});
// Calculate the default element count based on isForTab
if (props.numElems) return props.numElems
if (props.isForTab === "all") return 20
if (props.isForTab === "image") return 30
return 8
})
return { getRandomSize, elementCount }
},
Expand Down

0 comments on commit 53499db

Please sign in to comment.