Skip to content

Commit a68abf2

Browse files
committed
fix speaker list when empty
1 parent bdf9454 commit a68abf2

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • apps/codingcatdev/src/routes/(content-single)/(non-course)

‎apps/codingcatdev/src/routes/(content-single)/(non-course)/Content.svelte‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,14 @@
8585
</section>
8686
{/if}
8787
</div>
88-
88+
<hr />
8989
<!-- Sponsors -->
90-
{#if data?.sponsors}
91-
<hr />
92-
90+
{#if data?.sponsors?.length}
9391
<h2>Sponsors</h2>
9492
<section class="flex flex-col gap-2 md:flex-row md:gap-8">
9593
{#each data?.sponsors as sponsor (sponsor.slug)}
9694
<a
97-
class="max-w-sm overflow-hidden bcu-card bg-initial card-hover"
95+
class="overflow-hidden bcu-card bg-initial card-hover md:flex-1"
9896
href={`${sponsor.url}`}
9997
target="_blank"
10098
rel="noopener noreferrer"

0 commit comments

Comments
 (0)