File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
frontend/app/components/modules
leaderboards/components/sections Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,20 @@ SPDX-License-Identifier: MIT
3131 </div >
3232 </template >
3333 <template #item =" { data } " >
34- <lfx-leaderboard-card
35- v-if =" !isPending"
36- :config =" data"
37- :leaderboards =" getLeaderboardsByType(data.key)"
38- />
39- <div v-else >
40- <lfx-skeleton class =" !w-full !h-[440px] rounded-lg" />
41- </div >
34+ <client-only >
35+ <div v-if =" !isPending" >
36+ <lfx-leaderboard-card
37+ :config =" data"
38+ :leaderboards =" getLeaderboardsByType(data.key)"
39+ />
40+ </div >
41+ <div v-else >
42+ <lfx-skeleton class =" !w-full !h-[440px] rounded-lg" />
43+ </div >
44+ <template #fallback >
45+ <lfx-skeleton class =" !w-full !h-[440px] rounded-lg" />
46+ </template >
47+ </client-only >
4248 </template >
4349 <template #footer >
4450 <div class =" md:hidden flex justify-center" >
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ SPDX-License-Identifier: MIT
2727 <p
2828 :title =" item.name"
2929 class =" text-base leading-5 font-medium text-neutral-900 overflow-hidden text-ellipsis whitespace-nowrap max-w-full"
30- :class =" { 'hover:underline text-sm cursor-pointer': isSmall }"
30+ :class =" { 'hover:underline text-sm cursor-pointer': isSmall && !!item.slug }"
3131 @click =" navigateToProject(item.slug)"
3232 >
3333 {{ item.name }}
You can’t perform that action at this time.
0 commit comments