diff --git a/src/app/space/components/blocks/thread.tsx b/src/app/space/components/blocks/thread.tsx index b0a664c0..0946cd06 100644 --- a/src/app/space/components/blocks/thread.tsx +++ b/src/app/space/components/blocks/thread.tsx @@ -10,11 +10,13 @@ import { RepliesList } from '@shared/notes/replies/list'; import { NoteSkeleton } from '@shared/notes/skeleton'; import { TitleBar } from '@shared/titleBar'; +import { useAccount } from '@utils/hooks/useAccount'; import { useEvent } from '@utils/hooks/useEvent'; import { Block } from '@utils/types'; export function ThreadBlock({ params }: { params: Block }) { const { status, data } = useEvent(params.content); + const { account } = useAccount(); // subscribe to live reply // useLiveThread(params.content); @@ -22,7 +24,7 @@ export function ThreadBlock({ params }: { params: Block }) { return (
-
+
{status === 'loading' ? (
@@ -30,7 +32,7 @@ export function ThreadBlock({ params }: { params: Block }) {
) : ( -
+
@@ -44,7 +46,7 @@ export function ThreadBlock({ params }: { params: Block }) {
)}
- +
diff --git a/src/shared/accounts/active.tsx b/src/shared/accounts/active.tsx index ec83e404..6d97df22 100644 --- a/src/shared/accounts/active.tsx +++ b/src/shared/accounts/active.tsx @@ -94,7 +94,7 @@ export function ActiveAccount({ data }: { data: any }) { return ( {data.npub} -
+
diff --git a/src/shared/notes/index.tsx b/src/shared/notes/index.tsx index 0f7531e8..2024abfc 100644 --- a/src/shared/notes/index.tsx +++ b/src/shared/notes/index.tsx @@ -10,6 +10,7 @@ export * from './preview/video'; export * from './replies/form'; export * from './replies/item'; export * from './replies/list'; +export * from './replies/sub'; export * from './kinds/kind1'; export * from './kinds/kind1063'; export * from './metadata'; diff --git a/src/shared/notes/mentions/note.tsx b/src/shared/notes/mentions/note.tsx index 51471b3e..722d2e33 100644 --- a/src/shared/notes/mentions/note.tsx +++ b/src/shared/notes/mentions/note.tsx @@ -29,7 +29,7 @@ export const MentionNote = memo(function MentionNote({ id }: { id: string }) { onKeyDown={(e) => openThread(e, id)} role="button" tabIndex={0} - className="mt-3 rounded-lg border-t border-zinc-700/50 bg-zinc-800/50 px-3 py-3" + className="mb-2 mt-3 rounded-lg border-t border-zinc-700/50 bg-zinc-800/50 px-3 py-3" > {status === 'loading' ? ( diff --git a/src/shared/notes/preview/image.tsx b/src/shared/notes/preview/image.tsx index 43df8a58..c7aca728 100644 --- a/src/shared/notes/preview/image.tsx +++ b/src/shared/notes/preview/image.tsx @@ -2,7 +2,7 @@ import { Image } from '@shared/image'; export function ImagePreview({ urls, truncate }: { urls: string[]; truncate?: boolean }) { return ( -
+
{urls.map((url) => (
diff --git a/src/shared/notes/preview/link.tsx b/src/shared/notes/preview/link.tsx index 5f12f18f..4d443422 100644 --- a/src/shared/notes/preview/link.tsx +++ b/src/shared/notes/preview/link.tsx @@ -7,7 +7,7 @@ export function LinkPreview({ urls }: { urls: string[] }) { const domain = new URL(urls[0]); return ( -
+
{status === 'loading' ? (
diff --git a/src/shared/notes/preview/video.tsx b/src/shared/notes/preview/video.tsx index c5c0ebf1..85a76580 100644 --- a/src/shared/notes/preview/video.tsx +++ b/src/shared/notes/preview/video.tsx @@ -2,7 +2,7 @@ import ReactPlayer from 'react-player/es6'; export function VideoPreview({ urls }: { urls: string[] }) { return ( -
+
{urls.map((url) => ( { @@ -21,23 +26,39 @@ export function NoteReplyForm({ id }: { id: string }) { }; return ( -
+