mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
사진 또는 동영상이 없을 때 홈 페이지의 레이아웃이 깨지는 버그 수정
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user