diff options
author | 2019-04-05 16:09:51 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:54 +0300 | |
commit | 360bf761c0687965c1f10e7a87428c9af2b26df2 (patch) | |
tree | 61e64fec5dacf57deaeae0fbe3a30c8db6d684a1 /vnext/src/components/Message.js | |
parent | cbe9f5a28b56b86d42081b358a240ddb35ffcd12 (diff) |
Styling and layout
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r-- | vnext/src/components/Message.js | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js index 3d063114..c63c5750 100644 --- a/vnext/src/components/Message.js +++ b/vnext/src/components/Message.js @@ -41,34 +41,28 @@ function Message({ data, visitor, children, ...rest }) { <MessageSummary message={data} /> <nav className="l"> {visitor.uid === data.user.uid ? ( - <a href={`/${data.user.uname}/${data.mid}`} className="a-like msg-button"> - <span className="msg-button-icon"> - <Icon name="ei-heart" size="s" /> - </span> - <span> Recommend</span> - </a> + <Link to={{ pathname: `/${data.user.uname}/${data.mid}`}} className="a-like msg-button"> + <Icon name="ei-heart" size="s" /> + <span className="desktop">Recommend</span> + </Link> ) : visitor.uid > 0 ? ( <Link to={{ pathname: '/post', search: `?body=!+%23${data.mid}` }} className="a-like msg-button"> - <span className="msg-button-icon"> - <Icon name="ei-heart" size="s" /> - </span> - <span> Recommend</span> + <Icon name="ei-heart" size="s" /> + <span className="desktop">Recommend</span> </Link> ) : ( <a href="/login" className="a-login msg-button"> <span className="msg-button-icon"> <Icon name="ei-heart" size="s" /> </span> - <span> Recommend</span> + <span className="desktop">Recommend</span> </a> )} {!data.ReadOnly | (visitor.uid === data.user.uid) && ( <> <Link to={{ pathname: `/${data.user.uname}/${data.mid}`, state: { msg: data } }} className="a-comment msg-button"> - <span className="msg-button-icon"> - <Icon name="ei-comment" size="s" /> - </span> - <span> Comment</span> + <Icon name="ei-comment" size="s" /> + <span className="desktop">Comment</span> </Link> </> )} |