From 78df0dcfffeaa57e45b0c4e04c82d2cc9a8cf905 Mon Sep 17 00:00:00 2001 From: mrfry Date: Sat, 6 Mar 2021 14:53:27 +0100 Subject: [PATCH] Fixed new lines in news entry --- src/components/newsEntry.js | 17 +++++++++-------- src/components/newsEntry.module.css | 1 + src/components/reactButton.js | 1 - 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/newsEntry.js b/src/components/newsEntry.js index c29bca7..8a37d40 100644 --- a/src/components/newsEntry.js +++ b/src/components/newsEntry.js @@ -20,19 +20,20 @@ export default function NewsEntry({
-
+
{title}
User #{user}
{date}
-
+ {admin ? ( +
+ ) : ( +
{content}
+ )}
{uid === user ? ( diff --git a/src/components/newsEntry.module.css b/src/components/newsEntry.module.css index c5185a1..960b94a 100644 --- a/src/components/newsEntry.module.css +++ b/src/components/newsEntry.module.css @@ -2,6 +2,7 @@ margin: 0px 5px; font-size: 18px; color: #fff; + white-space: pre-line; } .newsTitle { diff --git a/src/components/reactButton.js b/src/components/reactButton.js index 11a4610..68c61f3 100644 --- a/src/components/reactButton.js +++ b/src/components/reactButton.js @@ -76,7 +76,6 @@ export default function ReactButton({ onClick, existingReacts, uid }) { onClick={() => { setOpened(true) }} - onMouseEnter={() => {}} onMouseLeave={() => { setOpened(false) }}