Skip to content

Commit

Permalink
fix: fix lot of invalidate when filterrdCards changed from zero to no…
Browse files Browse the repository at this point in the history
…n-zero
  • Loading branch information
jeffpeng3 committed Feb 11, 2025
1 parent 119f24f commit 11204b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MainView.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<AppBarComponent @update:searchQuery="updateSearchQuery" v-model:ascending="ascending" />
<!-- <v-container class="fill-height" fluid> -->
<Grid :length="filteredCards.length" :pageSize="cardsPerRow" :pageProvider="pageProvider" :get-key="getKey" class="grid ma-5">
<Grid :length="filteredCards.length ? filteredCards.length : 1" :pageSize="cardsPerRow" :pageProvider="pageProvider" :get-key="getKey" :page-provider-debounce-time="100" class="grid ma-5">
<template v-slot:placeholder="{ index, style }">
<div class="item" :style="style">還在GO...</div>
<div class="item" :style="style">{{filteredCards.length ? "還在GO..." : ""}}</div>
</template>
<template v-slot:default="{ item, style, index }">
<CardComponent :styles="style" :cardData="item" :preferCopyURL="copyMode" />
Expand Down

0 comments on commit 11204b6

Please sign in to comment.