fix: make thumbnails for postlink smaller
This commit is contained in:
1 parent
c0c8653e60
commit
0ec2456985
1 file changed
+3
-2
@@ -22,6 +22,7 @@
|
|||||||
<Material
|
<Material
|
||||||
color="distinct"
|
color="distinct"
|
||||||
class="flex flex-col-reverse sm:flex-row overflow-hidden gap-4"
|
class="flex flex-col-reverse sm:flex-row overflow-hidden gap-4"
|
||||||
|
rounding="lg"
|
||||||
>
|
>
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
{#if richURL}
|
{#if richURL}
|
||||||
@@ -53,7 +54,7 @@
|
|||||||
<a
|
<a
|
||||||
href={url}
|
href={url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="-m-4 mb-auto sm:-mb-4 sm:ml-auto flex-shrink-0 sm:w-1/3 sm:max-w-60"
|
class="-m-4 mb-auto sm:-mb-4 sm:ml-auto flex-shrink-0 sm:w-1/3 sm:min-h-40 sm:max-w-60"
|
||||||
>
|
>
|
||||||
<picture>
|
<picture>
|
||||||
<source
|
<source
|
||||||
@@ -70,7 +71,7 @@
|
|||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
src={optimizeImageURL(thumbnail_url, -1)}
|
src={optimizeImageURL(thumbnail_url, -1)}
|
||||||
class="object-cover w-full sm:max-w-96 h-48 sm:h-72 bg-slate-200 dark:bg-zinc-800"
|
class="object-cover w-full sm:max-w-96 h-48 sm:min-h-40 sm:h-full bg-slate-200 dark:bg-zinc-800"
|
||||||
width={600}
|
width={600}
|
||||||
height={400}
|
height={400}
|
||||||
alt={embed_title}
|
alt={embed_title}
|
||||||
|
|||||||
Reference in new issue
Block a user