Merge pull request #360 from sevonj/postlink-vertical-thumbnail

Vertical postlink layout for mobile
This commit is contained in:
Xylight authored and GitHub committed 2024-07-20 10:54:15 -07:00
commit c7803eb095
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-1/3 sm:max-w-60"
> >
<img <img
src={optimizeImageURL(thumbnail_url, 256)} src={optimizeImageURL(thumbnail_url, 256)}
@@ -101,10 +101,3 @@
</a> </a>
{/if} {/if}
{/if} {/if}
<style>
.thumbnail {
max-width: 240px;
height: calc(100%+16px);
}
</style>