Skip to content

Commit

Permalink
Fix overflow in documents section
Browse files Browse the repository at this point in the history
  • Loading branch information
Macludde committed Aug 15, 2024
1 parent ebc2b2c commit 7c273eb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/lib/components/home/Documents.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
</h2>
<ul class="menu p-0">
{#each files.next.slice(0, 4) as file}
<li>
<li class="inline-block max-w-full">
<a href={file.thumbnailUrl}>
<span
class="i-mdi-document size-6 max-lg:text-primary lg:text-secondary"
/>
{file.name}
<span class="overflow-x-hidden text-ellipsis whitespace-nowrap">
{file.name}
</span>
</a>
</li>
{/each}
Expand All @@ -38,12 +40,14 @@
</h2>
<ul class="menu p-0">
{#each files.last.slice(0, 4) as file}
<li>
<a href={file.thumbnailUrl}>
<li class="inline-block max-w-full">
<a href={file.thumbnailUrl} class="text-ellipsis">
<span
class="i-mdi-document size-6 max-lg:text-primary lg:text-secondary"
/>
{file.name}
<span class="overflow-x-hidden text-ellipsis whitespace-nowrap">
{file.name}
</span>
</a>
</li>
{/each}
Expand Down

0 comments on commit 7c273eb

Please sign in to comment.