fix: inbox jump button not visible on mobile

This commit is contained in:
James Xylight committed 2025-06-10 11:59:00 -07:00
1 parent 7e2590585d
commit a7159b0526
2 files changed
+16 -19

No files matched your search

@@ -2,7 +2,6 @@
import { profile } from '$lib/auth.svelte.js'
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
import Markdown from '$lib/components/markdown/Markdown.svelte'
import TextProps from '$lib/components/ui/text/TextProps.svelte'
import type { PrivateMessageView } from 'lemmy-js-client'
interface Props {
@@ -35,10 +34,8 @@
{/if}
</div>
{/if}
<TextProps wrap="no-wrap">
<Markdown
rendererOptions={{ autoloadImages: false }}
source={message.private_message.content}
/>
</TextProps>
<Markdown
rendererOptions={{ autoloadImages: false }}
source={message.private_message.content}
/>
</div>
+12 -12
View File
@@ -119,9 +119,9 @@
: $t('post.actions.more.markRead')}
</Button>
<Button
href={item.type == 'comment_reply' || item.type == 'person_mention'
? `/comment/${item.item.comment.id}`
: `/inbox/messages/${item.item.private_message.creator_id}`}
href={item.type == 'private_message'
? `/inbox/messages/${item.item.private_message.creator_id}`
: `/comment/${item.item.comment.id}`}
size="sm"
rounding="pill"
class="shrink-0"
@@ -151,15 +151,15 @@
? $t('post.actions.more.markUnread')
: $t('post.actions.more.markRead')}
</Button>
{#if item.type == 'comment_reply' || item.type == 'person_mention'}
<Button
href="/comment/{item.item.comment.id}"
size="sm"
rounding="pill"
>
{$t('common.jump')}
</Button>
{/if}
<Button
href={item.type == 'private_message'
? `/inbox/messages/${item.item.private_message.creator_id}`
: `/comment/${item.item.comment.id}`}
size="sm"
rounding="pill"
>
{$t('common.jump')}
</Button>
</div>
{/snippet}
{#snippet content()}