Merge pull request #140 from v0l/fix-reply-bottom-thread

fix: add bottom margin to thread
This commit is contained in:
Kieran 2023-01-25 18:39:59 +00:00 committed by GitHub
commit 3342f3bf79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

3
src/Element/Thread.css Normal file
View File

@ -0,0 +1,3 @@
.thread-container {
margin: 12px 0 150px 0;
}

View File

@ -1,3 +1,4 @@
import "./Thread.css";
import { useMemo } from "react";
import { Link } from "react-router-dom";
import { TaggedRawEvent, u256 } from "Nostr";
@ -82,7 +83,7 @@ export default function Thread(props: ThreadProps) {
}
return (
<>
<div className="thread-container">
{renderRoot()}
{root ? renderChain(root.Id) : null}
{root ? null : <>
@ -98,6 +99,6 @@ export default function Thread(props: ThreadProps) {
)
})}
</>}
</>
</div>
);
}