Skip to content

Commit

Permalink
Fix: undo thumbnail as avatar
Browse files Browse the repository at this point in the history
  • Loading branch information
gagansuie committed Jul 14, 2023
1 parent e8bdf06 commit c934a9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/Browse/Sections/ItemCarousel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
<p class="text-2xl truncate text-white font-semibold">{channel.title || ''}</p>
<div class="flex flex-row items-center gap-2">
<div class="avatar">
<div class="w-14 mask {channel.isPaidPlan ? 'mask-hexagon' : 'mask-squircle'}">
<img src={channel.thumbnail || channel.avatar} alt="" />
<div class="w-14 mask {channel?.isPaidPlan ? 'mask-hexagon' : 'mask-squircle'}">
<img src={channel.avatar} alt="" />
</div>
</div>
<div class="w-4/5">
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/Browse/Sections/ItemChannel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
<p class="text-lg font-semibold truncate">{channel.title}</p>
<div class="flex flex-row gap-2 max-w-[25rem]">
<div class="avatar">
<div class="w-12 mask {channel.isPaidPlan ? 'mask-hexagon' : 'mask-squircle'}">
<img src={channel.thumbnail || channel.avatar} alt="" />
<div class="w-12 mask {channel?.isPaidPlan ? 'mask-hexagon' : 'mask-squircle'}">
<img src={channel.avatar} alt="" />
</div>
</div>
<div class="flex items-center">
Expand Down
8 changes: 2 additions & 6 deletions src/lib/components/Browse/Sections/ItemTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
import { goto } from '$app/navigation'
import { category_list } from '$lib/stores/channelStore'
export let channel: any = {}
let thumbnailImage = channel.thumbnail || '/placeholder/programming-placeholder.jpg';
console.log(thumbnailImage)
</script>

<tr
Expand All @@ -17,8 +13,8 @@
<td>
<div class="flex items-center space-x-2 my-3 pl-3">
<div class="avatar">
<div class="w-12 mask {channel.isPaidPlan ? 'mask-hexagon' : 'mask-squircle'}">
<img src={thumbnailImage} alt="" />
<div class="w-12 mask {channel?.isPaidPlan ? 'mask-hexagon' : 'mask-squircle'}">
<img src={channel.avatar} alt="" />
</div>
</div>
<div>
Expand Down

0 comments on commit c934a9e

Please sign in to comment.