aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/Note.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/Note.js')
-rw-r--r--src/ui/Note.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ui/Note.js b/src/ui/Note.js
index 34c15d7..6bdec04 100644
--- a/src/ui/Note.js
+++ b/src/ui/Note.js
@@ -103,6 +103,13 @@ section > main {
font-family: serif;
}
+section > main > p:first-child {
+ margin-top: 0;
+}
+section > main > p:last-child {
+ margin-bottom: 0;
+}
+
section.tombstone > main {
font-family: inherit;
}
@@ -153,9 +160,7 @@ export const Note = ({
? <header className="small" onClick={onClickHeader} />
: <Header onClick={onClickHeader} user={attributedTo} published={published} />
}
- <main>
- {content}
- </main>
+ <main innerHTML={content} />
</section>
);
};