Browse Source

fix overflowing cards on the landing page

master
silberengel 7 months ago
parent
commit
30bf625e33
  1. 16
      src/lib/components/publications/PublicationHeader.svelte

16
src/lib/components/publications/PublicationHeader.svelte

@ -69,22 +69,22 @@
{/if} {/if}
</div> </div>
<div class="flex flex-col flex-grow space-x-2 min-w-0"> <div class="flex flex-col flex-grow min-w-0 overflow-hidden">
<div class="flex flex-col flex-grow min-w-0"> <div class="flex flex-col flex-grow min-w-0 overflow-hidden">
<a href="/{href}" class="flex flex-col space-y-2 h-full min-w-0"> <a href="/{href}" class="flex flex-col space-y-2 h-full min-w-0 overflow-hidden">
<div class="flex-grow pt-2 min-w-0"> <div class="flex-grow pt-2 min-w-0 overflow-hidden">
<h2 class="text-lg font-bold line-clamp-2 break-words" {title}>{title}</h2> <h2 class="text-lg font-bold line-clamp-2 break-words overflow-hidden" {title}>{title}</h2>
<h3 class="text-base font-normal mt-2 break-words"> <h3 class="text-base font-normal mt-2 break-words overflow-hidden">
by by
{#if authorPubkey != null} {#if authorPubkey != null}
{@render userBadge(authorPubkey, author, ndk)} {@render userBadge(authorPubkey, author, ndk)}
{:else} {:else}
{author} <span class="truncate">{author}</span>
{/if} {/if}
</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 break-words">version: {version}</h3> <h3 class="text-sm font-semibold text-primary-600 dark:text-primary-400 mt-auto break-words overflow-hidden">version: {version}</h3>
{/if} {/if}
</a> </a>
</div> </div>

Loading…
Cancel
Save