From e742c369da7a1186e5c03dc1577b1fa5122480c5 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 26 Jul 2019 15:26:14 +0300 Subject: Fix thread, fix text font --- vnext/src/index.css | 2 +- vnext/src/ui/Thread.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/vnext/src/index.css b/vnext/src/index.css index d635667b..a6f03b23 100644 --- a/vnext/src/index.css +++ b/vnext/src/index.css @@ -7,7 +7,7 @@ --background-color: #f8f8f8; --border-color: #eee; --text-background-color: #fff; - --text-color: #363636; + --text-color: #222; --link-color: #3c77aa; --dimmed-link-color: #88958d; } diff --git a/vnext/src/ui/Thread.js b/vnext/src/ui/Thread.js index cae60139..e469b8cf 100644 --- a/vnext/src/ui/Thread.js +++ b/vnext/src/ui/Thread.js @@ -137,8 +137,9 @@ export default function Thread(props) { params.hash = hash; getMessages('/api/thread', params) .then(response => { + let updatedMessage = response.data.shift(); if (!message.mid) { - setMessage(response.data.shift()); + setMessage(updatedMessage); } setReplies(response.data); setLoading(false); -- cgit v1.2.3