diff --git a/src/components/editor/PostComposer.tsx b/src/components/editor/PostComposer.tsx index 1c714f7..c9a45e2 100644 --- a/src/components/editor/PostComposer.tsx +++ b/src/components/editor/PostComposer.tsx @@ -36,6 +36,7 @@ import { DropdownMenuTrigger, } from "../ui/dropdown-menu"; import { UserName } from "../nostr/UserName"; +import { RelayLink } from "../nostr/RelayLink"; /** * Result when submitting a post @@ -327,8 +328,8 @@ export const PostComposer = forwardRef( @@ -363,8 +364,8 @@ export const PostComposer = forwardRef( @@ -413,9 +414,9 @@ export const PostComposer = forwardRef( {userRelays.map((relay) => { const status = relayStatuses.find((s) => s.url === relay); return ( - + ); })} diff --git a/src/index.css b/src/index.css index 83cbad5..1fa0a77 100644 --- a/src/index.css +++ b/src/index.css @@ -388,21 +388,23 @@ body.animating-layout .editor-card .ProseMirror { min-height: 6rem; /* 4 rows at 1.5rem line-height */ + max-height: 6rem; /* Lock to 4 rows initially */ overflow-y: auto; line-height: 1.5rem; - padding: 0.75rem; + padding: 0.5rem 0.75rem; text-align: left !important; vertical-align: top; } .editor-card .ProseMirror p { line-height: 1.5rem; - margin-bottom: 0.5rem; + margin-bottom: 0; + margin-top: 0; text-align: left !important; } -.editor-card .ProseMirror p:last-child { - margin-bottom: 0; +.editor-card .ProseMirror p + p { + margin-top: 0.5rem; } .editor-card .ProseMirror p.is-editor-empty:first-child::before {