사진 또는 동영상이 없을 때 홈 페이지의 레이아웃이 깨지는 버그 수정

This commit is contained in:
static
2025-12-29 19:43:25 +09:00
parent 15b6a53710
commit cdb652cacf
2 changed files with 10 additions and 8 deletions

View File

@@ -100,7 +100,7 @@
count={rows.length}
itemHeight={(index) =>
rows[index]!.type === "header"
? 32
? 28
: Math.ceil(rows[index]!.items.length / 4) * 181 +
(Math.ceil(rows[index]!.items.length / 4) - 1) * 4 +
16}
@@ -109,7 +109,7 @@
{#snippet item(index)}
{@const row = rows[index]!}
{#if row.type === "header"}
<p class="pb-2 font-medium">{row.label}</p>
<p class="pb-2 text-sm font-medium">{row.label}</p>
{:else}
<div class={["grid grid-cols-4 gap-x-1", row.isLast ? "pb-4" : "pb-1"]}>
{#each row.items as { info }}