kopia lustrzana https://github.com/learn-awesome/learndb
advanced search iid fixed, bookcard item creators condition added
rodzic
f524353629
commit
e87c7384ed
|
@ -43,7 +43,7 @@
|
||||||
{#if result_items.length > 0}
|
{#if result_items.length > 0}
|
||||||
<sl-menu-label class="bg-gray-200">Items</sl-menu-label>
|
<sl-menu-label class="bg-gray-200">Items</sl-menu-label>
|
||||||
{#each result_items as item}
|
{#each result_items as item}
|
||||||
<sl-menu-item value="#/item/{item.rowid}">{item.name}
|
<sl-menu-item value="#/item/{item.iid}">{item.name}
|
||||||
{#each item.links.split(";") as type}
|
{#each item.links.split(";") as type}
|
||||||
{#if type.split("|")[0] === 'book'}
|
{#if type.split("|")[0] === 'book'}
|
||||||
<sl-icon name="book" slot="suffix"></sl-icon>
|
<sl-icon name="book" slot="suffix"></sl-icon>
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
{#if !item.image}
|
{#if !item.image}
|
||||||
<div class="absolute inset-y-0 pl-3 pr-2 py-4 break-inside-avoid">
|
<div class="absolute inset-y-0 pl-3 pr-2 py-4 break-inside-avoid">
|
||||||
<p class="font-bold text-xs md:font-extrabold text-primary_light md:text-base">{item.name}</p>
|
<p class="font-bold text-xs md:font-extrabold text-primary_light md:text-base">{item.name}</p>
|
||||||
|
{#if item.creators}
|
||||||
<p class="text-xs text-primary_light mt-3">{item.creators}</p>
|
<p class="text-xs text-primary_light mt-3">{item.creators}</p>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue