fix: FYAOI

This commit is contained in:
Xyphyn committed 2023-09-10 18:19:53 -07:00
1 parent 70311b1c65
commit 4e340f31e9
3 files changed
+30 -28

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "photon-lemmy", "name": "photon-lemmy",
"version": "1.4.5", "version": "1.4.6",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",
+28 -26
View File
@@ -27,7 +27,7 @@
target: any target: any
} }
) => { ) => {
if (e.target.id == post.post.id) goto(postLink(post.post)) if (e.target.id == post.post.id.toString()) goto(postLink(post.post))
} }
</script> </script>
@@ -48,34 +48,36 @@
> >
{#if view == 'list' || view == 'compact'} {#if view == 'list' || view == 'compact'}
<div <div
class="absolute -inset-0.5 group-hover:-inset-2.5 group-hover:-inset-y-3 group-hover:md:-inset-4 class="absolute -inset-0.5 group-hover:-inset-2 group-hover:-inset-y-3 group-hover:md:-inset-4
transition-all -z-[5] rounded-xl group-hover:bg-slate-100 group-hover:dark:bg-zinc-900" transition-all -z-[5] rounded-xl group-hover:bg-slate-100 group-hover:dark:bg-zinc-900"
/> />
{/if} {/if}
<div class="flex flex-row gap-2 max-w-full w-full"> <div class="flex flex-row gap-2 max-w-full w-full">
<div class="flex flex-col gap-2"> <div class="flex flex-col w-full gap-2">
<PostMeta <div class="flex flex-col w-full gap-2">
community={hideCommunity ? undefined : post.community} <PostMeta
user={post.creator} community={hideCommunity ? undefined : post.community}
published={new Date(post.post.published + 'Z')} user={post.creator}
upvotes={post.counts.upvotes} published={new Date(post.post.published + 'Z')}
downvotes={post.counts.downvotes} upvotes={post.counts.upvotes}
deleted={post.post.deleted} downvotes={post.counts.downvotes}
removed={post.post.removed} deleted={post.post.deleted}
locked={post.post.locked} removed={post.post.removed}
featured={post.post.featured_local || post.post.featured_community} locked={post.post.locked}
nsfw={post.post.nsfw} featured={post.post.featured_local || post.post.featured_community}
saved={post.saved} nsfw={post.post.nsfw}
/> saved={post.saved}
<a />
href="/post/{getInstance()}/{post.post.id}" <a
class="font-medium max-w-full w-full break-words text-base" href="/post/{getInstance()}/{post.post.id}"
style="word-break: break-word;" class="font-medium max-w-full w-full break-words text-base"
class:text-slate-500={post.read && $userSettings.markReadPosts} style="word-break: break-word;"
class:dark:text-zinc-400={post.read && $userSettings.markReadPosts} class:text-slate-500={post.read && $userSettings.markReadPosts}
> class:dark:text-zinc-400={post.read && $userSettings.markReadPosts}
<Markdown source={post.post.name} inline /> >
</a> <Markdown source={post.post.name} inline />
</a>
</div>
{#if $userSettings.view == 'card'} {#if $userSettings.view == 'card'}
{#if isImage(post.post.url)} {#if isImage(post.post.url)}
<!--disabled preloads here since most people will hover over every image while scrolling--> <!--disabled preloads here since most people will hover over every image while scrolling-->
@@ -146,7 +148,7 @@
{/if} {/if}
</div> </div>
{#if ($userSettings.view == 'list' || $userSettings.view == 'compact') && (post.post.thumbnail_url || isImage(post.post.url))} {#if ($userSettings.view == 'list' || $userSettings.view == 'compact') && (post.post.thumbnail_url || isImage(post.post.url))}
<div class="flex-none w-24 h-24 ml-auto"> <div class="flex-none w-24 h-24">
{#if !$userSettings.expandImages || (post.post.thumbnail_url && !isImage(post.post.url))} {#if !$userSettings.expandImages || (post.post.thumbnail_url && !isImage(post.post.url))}
<a href={postLink(post.post)}> <a href={postLink(post.post)}>
{#if post.post.thumbnail_url} {#if post.post.thumbnail_url}
+1 -1
View File
@@ -59,7 +59,7 @@
</Select> </Select>
<div class="flex gap-4 flex-wrap"> <div class="flex gap-4 flex-wrap">
<Sort selected={data.sort} /> <Sort selected={data.sort} />
<div class="max-[400px]:hidden"> <div class="max-[420px]:hidden">
<ViewSelect /> <ViewSelect />
</div> </div>
</div> </div>