fixes list icon size in trail edit

This commit is contained in:
Christian Beutel
2024-04-15 18:17:32 +02:00
parent 4c3fc8cab6
commit 52606a8ea9
2 changed files with 16 additions and 7 deletions

View File

@@ -167,6 +167,19 @@
<h4 class="text-4xl font-bold">
{trail.name}
</h4>
{#if trail.date}
<h5 class="text-sm">
{new Date(trail.date).toLocaleDateString(
undefined,
{
month: "long",
day: "2-digit",
year: "numeric",
timeZone: "UTC",
},
)}
</h5>
{/if}
<div class="flex flex-wrap gap-x-8 gap-y-2 mt-4 mr-8">
{#if trail.location}
<h3 class="text-lg">

View File

@@ -269,7 +269,7 @@
.get_start_time()
.toISOString()
.substring(0, 10);
} else if(!$form.date) {
} else if (!$form.date) {
$form.date = new Date().toISOString().substring(0, 10);
}
@@ -419,7 +419,7 @@
e: CustomEvent<{ text: string; value: string }>,
) {
if (e.detail.value === "edit") {
summitLog.set(currentSummitLog);
summitLog.set(currentSummitLog);
openSummitLogModal();
} else if (e.detail.value === "delete") {
$form.expand.summit_logs.splice(index, 1);
@@ -646,11 +646,7 @@
alt="avatar"
/>
{:else}
<div
class="flex w-4 aspect-square shrink-0 items-center justify-center"
>
<i class="fa fa-table-list text-5xl"></i>
</div>
<i class="fa fa-table-list text-2xl"></i>
{/if}
<span class="text-sm">{list.name}</span>
</div>