improve mobile view

This commit is contained in:
orangix
2023-08-15 22:20:54 +02:00
parent 21ebabdde3
commit 1e74fe248e
2 changed files with 7 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
<a href="{{Post.Link}}">
<div class="flex flex-row gap-2 w-full bg-slate-600 p-2 rounded-lg">
<img class="object-cover hidden sm:block w-[80px] h-[100px] rounded-lg" src="{{this.Post.Cover.Url}}" alt="">
<div class="flex flex-col gap-2">
<div class="sm:grid gap-4 w-full" style="grid-template-columns: 120px 1fr;">
<img class="object-cover block w-full h-[300px] sm:w-[120px] sm:h-[140px] rounded-lg rounded-b-none sm:rounded-b-lg" src="{{this.Post.Cover.Url}}" alt="">
<div class="flex flex-col gap-2 bg-slate-600 p-4 rounded-lg rounded-t-none sm:rounded-t-lg" w-full">
<div class="flex gap-2 items-center">
{{#noteq this.User.Username "[deleted]"}}
<img src="{{this.User.Avatar}}" class="rounded-full" width="24" height="24" loading="lazy">