misc: Increase post body padding
This commit is contained in:
1 parent
fa20d7a6a8
commit
3d19318355
3 files changed
+13
-12
No files matched your search
@@ -2,7 +2,7 @@
|
||||
import Comment from './Comment.svelte'
|
||||
import { buildCommentsTree, type CommentNodeI } from './comments'
|
||||
import { page } from '$app/stores'
|
||||
import { onMount } from 'svelte'
|
||||
import { onMount, setContext } from 'svelte'
|
||||
import Button from '$lib/components/input/Button.svelte'
|
||||
import { ChevronDown, Icon } from 'svelte-hero-icons'
|
||||
import { authData, getClient } from '$lib/lemmy.js'
|
||||
@@ -14,6 +14,10 @@
|
||||
export let isParent: boolean
|
||||
export let post: Post
|
||||
|
||||
if (isParent) {
|
||||
setContext('comments:tree', nodes)
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
if (isParent && $page.url.hash) {
|
||||
document.getElementById($page.url.hash)?.scrollIntoView({
|
||||
|
||||
Reference in new issue
Block a user