misc: add #comments for comments button

This commit is contained in:
Xylight committed 2024-10-13 14:36:43 -07:00
1 parent 0ea98f41dc
commit e6bd415749
5 files changed
+35 -30

No files matched your search

@@ -107,7 +107,7 @@
class="py-3 relative {node.comment_view.comment.distinguished
? ' text-primary-900 dark:text-primary-100'
: ''} {highlight} {$$props.class}"
id="#{node.comment_view.comment.id.toString()}"
id={node.comment_view.comment.id.toString()}
>
<button
on:click={() => (open = !open)}
@@ -4,9 +4,11 @@
import { createWindowVirtualizer } from '@tanstack/svelte-virtual'
import Comments from './Comments.svelte'
import { browser } from '$app/environment'
import { onMount } from 'svelte'
export let nodes: CommentNodeI[]
export let post: Post
export let scrollTo: string | undefined
let virtualListEl: HTMLElement | undefined = undefined
@@ -18,6 +20,7 @@
height: 1500,
width: 99999,
},
overscan: 5,
})
let virtualItemEls: HTMLElement[] = []