|
|
|
@ -64,7 +64,7 @@ |
|
|
|
let publicationContentRef: HTMLElement | null = $state(null); |
|
|
|
let publicationContentRef: HTMLElement | null = $state(null); |
|
|
|
|
|
|
|
|
|
|
|
// Comment layer state |
|
|
|
// Comment layer state |
|
|
|
let commentsVisible = $state(true); |
|
|
|
let commentsVisible = $state(false); |
|
|
|
let comments = $state<NDKEvent[]>([]); |
|
|
|
let comments = $state<NDKEvent[]>([]); |
|
|
|
let commentLayerRef: any = null; |
|
|
|
let commentLayerRef: any = null; |
|
|
|
let showArticleCommentUI = $state(false); |
|
|
|
let showArticleCommentUI = $state(false); |
|
|
|
@ -1734,8 +1734,8 @@ |
|
|
|
<!-- Comment Layer Component --> |
|
|
|
<!-- Comment Layer Component --> |
|
|
|
<CommentLayer |
|
|
|
<CommentLayer |
|
|
|
bind:this={commentLayerRef} |
|
|
|
bind:this={commentLayerRef} |
|
|
|
eventIds={allEventIds} |
|
|
|
eventIds={commentsVisible ? allEventIds : []} |
|
|
|
eventAddresses={allEventAddresses} |
|
|
|
eventAddresses={commentsVisible ? allEventAddresses : []} |
|
|
|
bind:comments |
|
|
|
bind:comments |
|
|
|
{useMockComments} |
|
|
|
{useMockComments} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|