Skip to content

Commit

Permalink
fix: make badges responsive to screen size (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwente authored Feb 22, 2024
1 parent a39e7a0 commit 65c587b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/components/Post.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@
</p>
</article>
</div>
<footer class="flex items-center justify-start space-x-4 p-4">
<div class="flex flex-auto items-center justify-between">
<footer class="flex gap-2 p-4">
<div class="flex w-full flex-wrap justify-start gap-1">
{#each post.categories as category}
<a class="variant-filled badge" href="{base}/blog/kategorie/{category}">&num;{category}</a>
{/each}
</div>
<div class="flex justify-end">
<small>
{new Date(post.date).toLocaleDateString('de-CH')}
</small>
Expand Down

0 comments on commit 65c587b

Please sign in to comment.