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
+6 -9

No files matched your search

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