Skip to content

Commit 414716a

Browse files
authored
fix: leaderboard carousel UI (#1394)
Signed-off-by: Efren Lim <[email protected]>
1 parent 5af2ed1 commit 414716a

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

frontend/app/components/modules/explore/components/leaderboard-carousel-section.vue

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff 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">

frontend/app/components/modules/leaderboards/components/sections/table-row.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)