From efdb2c2665125b6ff09da5bf35b4396ef6f028f9 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 4 Apr 2019 21:09:08 +0300 Subject: Recommendations in feeds --- vnext/src/components/Message.css | 6 ++++-- vnext/src/components/Message.js | 20 ++++++++++++++++++++ vnext/src/components/Thread.js | 18 ------------------ 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/vnext/src/components/Message.css b/vnext/src/components/Message.css index 337a3dc0..cd0c34ab 100644 --- a/vnext/src/components/Message.css +++ b/vnext/src/components/Message.css @@ -27,7 +27,7 @@ align-items: center; display: flex; flex-basis: 0; - flex-direction: column; + flex-direction: row; flex-grow: 1; padding-top: 12px; } @@ -129,7 +129,9 @@ blockquote { .msg-recomms { color: #AAA; font-size: small; - margin-top: 10px; + margin-bottom: 10px; + padding-bottom: 6px; + border-bottom: 1px solid #eee; overflow: hidden; text-indent: 10px; } diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js index 02371ddb..f093221b 100644 --- a/vnext/src/components/Message.js +++ b/vnext/src/components/Message.js @@ -6,6 +6,7 @@ import moment from 'moment'; import { UserType, MessageType } from './Types'; import Icon from './Icon'; import Avatar from './Avatar'; +import { UserLink } from './UserInfo'; import { format } from '../utils/embed'; @@ -15,6 +16,7 @@ function Message({ data, visitor, children, ...rest }) { const isCode = (data.tags || []).indexOf('code') >= 0; return (