fix: inbox jump button not visible on mobile
This commit is contained in:
2 files changed
+16
-19
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>
|
||||||
@@ -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={item.type == 'private_message'
|
||||||
href="/comment/{item.item.comment.id}"
|
? `/inbox/messages/${item.item.private_message.creator_id}`
|
||||||
size="sm"
|
: `/comment/${item.item.comment.id}`}
|
||||||
rounding="pill"
|
size="sm"
|
||||||
>
|
rounding="pill"
|
||||||
{$t('common.jump')}
|
>
|
||||||
</Button>
|
{$t('common.jump')}
|
||||||
{/if}
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
{#snippet content()}
|
{#snippet content()}
|
||||||
|
|||||||
Reference in new issue
Block a user