|
|
|
@ -47,9 +47,9 @@ |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
{#if title != null && href != null} |
|
|
|
{#if title != null && href != null} |
|
|
|
<Card class="ArticleBox card-leather max-w-md h-48 flex flex-row space-x-2 relative"> |
|
|
|
<Card class="ArticleBox card-leather w-full h-48 flex flex-row space-x-2 relative"> |
|
|
|
<div |
|
|
|
<div |
|
|
|
class="flex-shrink-0 w-32 h-40 overflow-hidden rounded flex items-center justify-center p-2 -mt-2" |
|
|
|
class="flex-shrink-0 w-40 h-40 overflow-hidden rounded flex items-center justify-center p-2 -mt-2" |
|
|
|
> |
|
|
|
> |
|
|
|
{#if image} |
|
|
|
{#if image} |
|
|
|
<LazyImage |
|
|
|
<LazyImage |
|
|
|
@ -67,12 +67,12 @@ |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="flex flex-col flex-grow space-x-2"> |
|
|
|
<div class="flex flex-col flex-grow space-x-2 min-w-0"> |
|
|
|
<div class="flex flex-col flex-grow"> |
|
|
|
<div class="flex flex-col flex-grow min-w-0"> |
|
|
|
<a href="/{href}" class="flex flex-col space-y-2 h-full"> |
|
|
|
<a href="/{href}" class="flex flex-col space-y-2 h-full min-w-0"> |
|
|
|
<div class="flex-grow pt-2"> |
|
|
|
<div class="flex-grow pt-2 min-w-0"> |
|
|
|
<h2 class="text-lg font-bold line-clamp-2" {title}>{title}</h2> |
|
|
|
<h2 class="text-lg font-bold line-clamp-2 break-words" {title}>{title}</h2> |
|
|
|
<h3 class="text-base font-normal mt-2"> |
|
|
|
<h3 class="text-base font-normal mt-2 break-words"> |
|
|
|
by |
|
|
|
by |
|
|
|
{#if authorPubkey != null} |
|
|
|
{#if authorPubkey != null} |
|
|
|
{@render userBadge(authorPubkey, author)} |
|
|
|
{@render userBadge(authorPubkey, author)} |
|
|
|
@ -82,7 +82,7 @@ |
|
|
|
</h3> |
|
|
|
</h3> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{#if version != "1"} |
|
|
|
{#if version != "1"} |
|
|
|
<h3 class="text-sm font-semibold text-primary-600 dark:text-primary-400 mt-auto">version: {version}</h3> |
|
|
|
<h3 class="text-sm font-semibold text-primary-600 dark:text-primary-400 mt-auto break-words">version: {version}</h3> |
|
|
|
{/if} |
|
|
|
{/if} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|