BlogPosts: Fix inaccurate stretching of image previews
This commit is contained in:
parent
e1c1cf3569
commit
d577bd3cba
@ -4,6 +4,6 @@
|
||||
export let url;
|
||||
</script>
|
||||
<a href={url} target="_blank"><div class="bg-neutral-700 hover:bg-neutral-500 p-2 rounded-md">
|
||||
<img class="w-76 h-44 object-fit" src={image}>
|
||||
<img class="w-full aspect-[40/21]" src={image}>
|
||||
<h2 class="text-sm font-bold">{title}</h2>
|
||||
</div></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user