postlink vertical thumbnail for mobile
This commit is contained in:
1 parent
70bebaa3bc
commit
4a75289249
1 file changed
+2
-9
@@ -19,7 +19,7 @@
|
|||||||
For embed-type posts. Displays embed card or a compact link.
|
For embed-type posts. Displays embed card or a compact link.
|
||||||
-->
|
-->
|
||||||
{#if embed_title && !compact}
|
{#if embed_title && !compact}
|
||||||
<Material color="distinct" class="flex flex-row gap-4">
|
<Material color="distinct" class="flex flex-col-reverse sm:flex-row overflow-hidden gap-4">
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
{#if richURL}
|
{#if richURL}
|
||||||
<Link
|
<Link
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
<a
|
<a
|
||||||
href={url}
|
href={url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="ml-auto w-full thumbnail rounded-r-lg overflow-hidden flex-shrink -m-4"
|
class="-m-4 mb-auto sm:-mb-4 sm:ml-auto flex-shrink-0 sm:w-[30%] sm:max-w-60"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={optimizeImageURL(thumbnail_url, 256)}
|
src={optimizeImageURL(thumbnail_url, 256)}
|
||||||
@@ -97,10 +97,3 @@
|
|||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<style>
|
|
||||||
.thumbnail {
|
|
||||||
max-width: 240px;
|
|
||||||
height: calc(100%+16px);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
Reference in new issue
Block a user