hide summit log photos col if no photos
This commit is contained in:
@@ -54,7 +54,7 @@
|
|||||||
<table class="w-full">
|
<table class="w-full">
|
||||||
<thead class="text-left text-gray-500">
|
<thead class="text-left text-gray-500">
|
||||||
<tr class="text-sm">
|
<tr class="text-sm">
|
||||||
{#if showPhotos}
|
{#if showPhotos && summitLogs.some(l => l.photos.length)}
|
||||||
<th class="w-24"></th>
|
<th class="w-24"></th>
|
||||||
{/if}
|
{/if}
|
||||||
<th>{$_("date")}</th>
|
<th>{$_("date")}</th>
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
{showCategory}
|
{showCategory}
|
||||||
{showTrail}
|
{showTrail}
|
||||||
{showAuthor}
|
{showAuthor}
|
||||||
{showPhotos}
|
showPhotos={showPhotos && summitLogs.some(l => l.photos.length)}
|
||||||
showDescription={summitLogs.some(l => l.text?.length)}
|
showDescription={summitLogs.some(l => l.text?.length)}
|
||||||
showRoute={showRoute && summitLogs.some((l) => l.gpx)}
|
showRoute={showRoute && summitLogs.some((l) => l.gpx)}
|
||||||
></SummitLogTableRow>
|
></SummitLogTableRow>
|
||||||
|
|||||||
@@ -164,6 +164,6 @@
|
|||||||
|
|
||||||
<style>
|
<style>
|
||||||
td {
|
td {
|
||||||
padding: 0rem 0.5rem;
|
padding: 0.3rem 0.5rem;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user