fix: no margin between postmeta and jump button in commentitem

This commit is contained in:
Xylight committed 2024-03-16 16:09:07 -07:00
1 parent ffe9113f0c
commit 7411e9f778
2 files changed
+8 -4

No files matched your search

@@ -6,6 +6,7 @@
import { userSettings } from '$lib/settings.js' import { userSettings } from '$lib/settings.js'
import type { CommentView } from 'lemmy-js-client' import type { CommentView } from 'lemmy-js-client'
import { Button, Material } from 'mono-svelte' import { Button, Material } from 'mono-svelte'
import { ArrowUturnUp, Icon } from 'svelte-hero-icons'
export let comment: CommentView export let comment: CommentView
export let view = $userSettings.view export let view = $userSettings.view
@@ -13,13 +14,13 @@
</script> </script>
<Material <Material
class="flex flex-col flex-1 gap-1 {view != 'card' class="flex flex-col flex-1 {view != 'card'
? '!bg-transparent !border-0 rounded-none' ? '!bg-transparent !border-0 rounded-none'
: 'p-5'} {view == 'list' ? 'py-5' : view == 'compact' ? 'py-4' : 'py-5'}" : 'p-5'} {view == 'list' ? 'py-5' : view == 'compact' ? 'py-4' : 'py-5'}"
color="distinct" color="distinct"
padding="none" padding="none"
> >
<div class="flex flex-row justify-between items-center"> <div class="flex flex-row justify-between items-center gap-2">
<PostMeta <PostMeta
badges={{ badges={{
nsfw: comment.post.nsfw, nsfw: comment.post.nsfw,
@@ -39,10 +40,11 @@
color="secondary" color="secondary"
href="/post/{comment.post.id}?thread={comment.comment.path}#{comment href="/post/{comment.post.id}?thread={comment.comment.path}#{comment
.comment.id}" .comment.id}"
size="sm" size="square-md"
class="self-start" class="self-start"
title="Jump"
> >
Jump <Icon src={ArrowUturnUp} size="16" mini />
</Button> </Button>
</div> </div>
<a <a
+2
View File
@@ -221,6 +221,7 @@
class="text-base" class="text-base"
instanceClass="text-sm" instanceClass="text-sm"
/> />
<div class="relative">
{#if data.person_view.person.bio} {#if data.person_view.person.bio}
<PostBody <PostBody
class="text-sm" class="text-sm"
@@ -228,6 +229,7 @@
body={data.person_view.person.bio} body={data.person_view.person.bio}
/> />
{/if} {/if}
</div>
<div class="text-sm flex flex-row flex-wrap gap-3"> <div class="text-sm flex flex-row flex-wrap gap-3">
<LabelStat <LabelStat
content={data.person_view.counts.post_count.toString()} content={data.person_view.counts.post_count.toString()}