mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-20 07:24:23 +01:00
fix: event listener
This commit is contained in:
@@ -166,7 +166,7 @@ const TextNoteDisplay: Component<TextNoteDisplayProps> = (props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
class="nostr-textnote flex flex-col"
|
class="nostr-textnote flex cursor-pointer flex-col"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
columnContext?.setColumnContent({
|
columnContext?.setColumnContent({
|
||||||
type: 'Replies',
|
type: 'Replies',
|
||||||
@@ -191,7 +191,7 @@ const TextNoteDisplay: Component<TextNoteDisplayProps> = (props) => {
|
|||||||
<div class="flex justify-between gap-1 text-xs">
|
<div class="flex justify-between gap-1 text-xs">
|
||||||
<button
|
<button
|
||||||
class="author flex min-w-0 truncate hover:text-blue-500"
|
class="author flex min-w-0 truncate hover:text-blue-500"
|
||||||
onClick={() => {
|
onClick={(ev) => {
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
showProfile(event().pubkey);
|
showProfile(event().pubkey);
|
||||||
}}
|
}}
|
||||||
@@ -267,8 +267,8 @@ const TextNoteDisplay: Component<TextNoteDisplayProps> = (props) => {
|
|||||||
<div class="actions flex w-48 items-center justify-between gap-8 pt-1">
|
<div class="actions flex w-48 items-center justify-between gap-8 pt-1">
|
||||||
<button
|
<button
|
||||||
class="h-4 w-4 shrink-0 text-zinc-400"
|
class="h-4 w-4 shrink-0 text-zinc-400"
|
||||||
onClick={() => {
|
onClick={(ev) => {
|
||||||
stopPropagation();
|
ev.stopPropagation();
|
||||||
setShowReplyForm((current) => !current);
|
setShowReplyForm((current) => !current);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
const filter = {
|
|
||||||
kinds: [1],
|
|
||||||
'#e': [rootEventId, currentEventId],
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user