diff --git a/src/index.css b/src/index.css
index bfcfa85e..87a1b332 100644
--- a/src/index.css
+++ b/src/index.css
@@ -15,7 +15,7 @@ button {
}
.markdown {
- @apply prose prose-white max-w-none select-text hyphens-auto text-white prose-p:mb-2 prose-p:mt-0 prose-p:break-words prose-p:[word-break:break-word] prose-p:last:mb-0 prose-a:break-words prose-a:break-all prose-a:font-normal prose-a:leading-tight prose-a:after:content-['_↗'] hover:prose-a:text-fuchsia-500 prose-blockquote:mb-1 prose-blockquote:mt-1 prose-blockquote:border-l-[2px] prose-blockquote:border-fuchsia-500 prose-blockquote:pl-2 prose-pre:whitespace-pre-wrap prose-pre:break-words prose-pre:break-all prose-ol:m-0 prose-ol:mb-1 prose-ul:mb-1 prose-ul:mt-1 prose-li:leading-tight prose-img:mb-2 prose-img:mt-3 prose-hr:mx-0 prose-hr:my-2;
+ @apply prose prose-white max-w-none select-text hyphens-auto text-white prose-p:mb-2 prose-p:mt-0 prose-p:break-words prose-p:[word-break:break-word] prose-p:last:mb-0 prose-a:break-words prose-a:break-all prose-a:font-normal prose-a:leading-tight prose-a:after:content-['_↗'] hover:prose-a:text-fuchsia-500 prose-blockquote:mb-1 prose-blockquote:mt-1 prose-blockquote:border-l-[2px] prose-blockquote:border-fuchsia-500 prose-blockquote:pl-2 prose-pre:whitespace-pre-wrap prose-pre:break-words prose-pre:break-all prose-ol:m-0 prose-ol:mb-1 prose-ul:mb-1 prose-ul:mt-1 prose-img:mb-2 prose-img:mt-3 prose-hr:mx-0 prose-hr:my-2;
}
.ProseMirror p.is-empty::before {
@@ -52,12 +52,3 @@ iframe {
span[data-slate-placeholder] {
@apply top-0;
}
-
-@keyframes loop {
- 0% {
- transform: translateX(0);
- }
- 100% {
- transform: translateX(-50%);
- }
-}
diff --git a/src/shared/notes/kinds/text.tsx b/src/shared/notes/kinds/text.tsx
index c14175b8..70996a08 100644
--- a/src/shared/notes/kinds/text.tsx
+++ b/src/shared/notes/kinds/text.tsx
@@ -25,7 +25,7 @@ export function TextNote({ event }: { event: NDKEvent }) {
components={{
del: ({ children }) => {
const key = children[0] as string;
- if (!key) return;
+ if (typeof key !== 'string') return;
if (key.startsWith('pub') && key.length > 50 && key.length < 100)
return
;
if (key.startsWith('tag')) return
;
diff --git a/src/shared/notes/mentions/hashtag.tsx b/src/shared/notes/mentions/hashtag.tsx
index 17c80b98..e6781512 100644
--- a/src/shared/notes/mentions/hashtag.tsx
+++ b/src/shared/notes/mentions/hashtag.tsx
@@ -16,7 +16,7 @@ export function Hashtag({ tag }: { tag: string }) {
content: tag.replace('#', ''),
})
}
- className="break-words font-normal text-orange-400 no-underline hover:text-orange-500"
+ className="break-words text-fuchsia-400 hover:text-fuchsia-500"
>
{tag}
diff --git a/src/shared/notes/mentions/user.tsx b/src/shared/notes/mentions/user.tsx
index 114eee56..95384432 100644
--- a/src/shared/notes/mentions/user.tsx
+++ b/src/shared/notes/mentions/user.tsx
@@ -21,7 +21,7 @@ export function MentionUser({ pubkey }: { pubkey: string }) {
content: pubkey,
})
}
- className="break-words font-normal text-blue-400 no-underline hover:text-blue-500"
+ className="break-words text-fuchsia-400 hover:text-fuchsia-500"
>
{user?.nip05 ||
user?.name ||
diff --git a/src/shared/notes/replies/item.tsx b/src/shared/notes/replies/item.tsx
index a84acfdc..5dfc71b1 100644
--- a/src/shared/notes/replies/item.tsx
+++ b/src/shared/notes/replies/item.tsx
@@ -1,14 +1,9 @@
-import { useMemo } from 'react';
-
-import { NoteActions, NoteContent, SubReply } from '@shared/notes';
+import { NoteActions, SubReply, TextNote } from '@shared/notes';
import { User } from '@shared/user';
-import { parser } from '@utils/parser';
import { NDKEventWithReplies } from '@utils/types';
export function Reply({ event, root }: { event: NDKEventWithReplies; root?: string }) {
- const content = useMemo(() => parser(event), [event]);
-
return (
@@ -17,8 +12,8 @@ export function Reply({ event, root }: { event: NDKEventWithReplies; root?: stri
diff --git a/src/shared/notes/replies/sub.tsx b/src/shared/notes/replies/sub.tsx
index 89ebbc19..6c3f31d8 100644
--- a/src/shared/notes/replies/sub.tsx
+++ b/src/shared/notes/replies/sub.tsx
@@ -1,22 +1,17 @@
import { NDKEvent } from '@nostr-dev-kit/ndk';
-import { useMemo } from 'react';
-import { NoteActions, NoteContent } from '@shared/notes';
+import { NoteActions, TextNote } from '@shared/notes';
import { User } from '@shared/user';
-import { parser } from '@utils/parser';
-
export function SubReply({ event }: { event: NDKEvent }) {
- const content = useMemo(() => parser(event), [event]);
-
return (