diff --git a/packages/ark/src/ark.ts b/packages/ark/src/ark.ts
index 2af5e51c..78128d8e 100644
--- a/packages/ark/src/ark.ts
+++ b/packages/ark/src/ark.ts
@@ -504,10 +504,11 @@ export class Ark {
title: "Thread",
url: `/events/${id}`,
minWidth: 500,
- width: 600,
+ width: 500,
height: 800,
hiddenTitle: true,
titleBarStyle: "overlay",
+ center: false,
});
}
diff --git a/packages/ui/src/note/content.tsx b/packages/ui/src/note/content.tsx
index ecfd2507..12415f5b 100644
--- a/packages/ui/src/note/content.tsx
+++ b/packages/ui/src/note/content.tsx
@@ -18,14 +18,22 @@ import { VideoPreview } from "./preview/video";
import { ImagePreview } from "./preview/image";
import reactStringReplace from "react-string-replace";
-export function NoteContent({ className }: { className?: string }) {
+export function NoteContent({
+ compact = true,
+ className,
+}: {
+ compact?: boolean;
+ className?: string;
+}) {
const event = useNoteContext();
const content = useMemo(() => {
const text = event.content.trim();
const words = text.split(/( |\n)/);
// @ts-ignore, kaboom !!!
- let parsedContent: ReactNode[] = text;
+ let parsedContent: ReactNode[] = compact
+ ? text.replace(/\n\s*\n/g, "\n")
+ : text;
const hashtags = words.filter((word) => word.startsWith("#"));
const events = words.filter((word) =>
@@ -112,6 +120,12 @@ export function NoteContent({ className }: { className?: string }) {
},
);
+ if (compact) {
+ parsedContent = reactStringReplace(parsedContent, /\n|\r/g, () => (
+
+ ));
+ }
+
return parsedContent;
} catch (e) {
return text;