fixes list icon size in trail edit
This commit is contained in:
@@ -167,6 +167,19 @@
|
|||||||
<h4 class="text-4xl font-bold">
|
<h4 class="text-4xl font-bold">
|
||||||
{trail.name}
|
{trail.name}
|
||||||
</h4>
|
</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">
|
<div class="flex flex-wrap gap-x-8 gap-y-2 mt-4 mr-8">
|
||||||
{#if trail.location}
|
{#if trail.location}
|
||||||
<h3 class="text-lg">
|
<h3 class="text-lg">
|
||||||
|
|||||||
@@ -269,7 +269,7 @@
|
|||||||
.get_start_time()
|
.get_start_time()
|
||||||
.toISOString()
|
.toISOString()
|
||||||
.substring(0, 10);
|
.substring(0, 10);
|
||||||
} else if(!$form.date) {
|
} else if (!$form.date) {
|
||||||
$form.date = new Date().toISOString().substring(0, 10);
|
$form.date = new Date().toISOString().substring(0, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -419,7 +419,7 @@
|
|||||||
e: CustomEvent<{ text: string; value: string }>,
|
e: CustomEvent<{ text: string; value: string }>,
|
||||||
) {
|
) {
|
||||||
if (e.detail.value === "edit") {
|
if (e.detail.value === "edit") {
|
||||||
summitLog.set(currentSummitLog);
|
summitLog.set(currentSummitLog);
|
||||||
openSummitLogModal();
|
openSummitLogModal();
|
||||||
} else if (e.detail.value === "delete") {
|
} else if (e.detail.value === "delete") {
|
||||||
$form.expand.summit_logs.splice(index, 1);
|
$form.expand.summit_logs.splice(index, 1);
|
||||||
@@ -646,11 +646,7 @@
|
|||||||
alt="avatar"
|
alt="avatar"
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<div
|
<i class="fa fa-table-list text-2xl"></i>
|
||||||
class="flex w-4 aspect-square shrink-0 items-center justify-center"
|
|
||||||
>
|
|
||||||
<i class="fa fa-table-list text-5xl"></i>
|
|
||||||
</div>
|
|
||||||
{/if}
|
{/if}
|
||||||
<span class="text-sm">{list.name}</span>
|
<span class="text-sm">{list.name}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user