From 062899c48354e541831476b868aa7f9cccb11705 Mon Sep 17 00:00:00 2001 From: jessop Date: Wed, 17 Jul 2019 16:56:36 -0400 Subject: [PATCH 1/2] improves comment display adds channel link adds support for newline better handles long channel names --- src/ui/component/comment/view.jsx | 15 +++++++++------ src/ui/component/commentsList/view.jsx | 1 + src/ui/scss/component/_comments.scss | 25 +++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/src/ui/component/comment/view.jsx b/src/ui/component/comment/view.jsx index 096f35642..d09cc3829 100644 --- a/src/ui/component/comment/view.jsx +++ b/src/ui/component/comment/view.jsx @@ -1,25 +1,28 @@ // @flow import React from 'react'; import relativeDate from 'tiny-relative-date'; +import Button from '../button'; type Props = { author: string, + authorUri: string, message: string, timePosted: number, }; function Comment(props: Props) { - const { author, timePosted, message } = props; + const { author, authorUri, timePosted, message } = props; return (
  • -
    - {author || __('Anonymous')} - - +
    +
    -

    {message}

    +

    {message}

    {/* The following is for adding threaded replies, upvoting and downvoting */} {/*
    */} {/* */} diff --git a/src/ui/component/commentsList/view.jsx b/src/ui/component/commentsList/view.jsx index bc4cfbaa7..76fdfca23 100644 --- a/src/ui/component/commentsList/view.jsx +++ b/src/ui/component/commentsList/view.jsx @@ -21,6 +21,7 @@ function CommentList(props: Props) { comments.map(comment => { return ( Date: Sun, 21 Jul 2019 16:46:30 -0400 Subject: [PATCH 2/2] update import --- src/ui/component/comment/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/component/comment/view.jsx b/src/ui/component/comment/view.jsx index d09cc3829..5ab76b8cb 100644 --- a/src/ui/component/comment/view.jsx +++ b/src/ui/component/comment/view.jsx @@ -1,7 +1,7 @@ // @flow import React from 'react'; import relativeDate from 'tiny-relative-date'; -import Button from '../button'; +import Button from 'component/button'; type Props = { author: string,