From e1bebb2d776b12d6e1461e06f318e79fcb93ea2c Mon Sep 17 00:00:00 2001 From: samogot Date: Sat, 28 May 2016 02:31:02 +0300 Subject: PLT-2321 Move the toggle icon next to the link being previewed (#3071) * PLT-2321 Move the toggle icon next to the link being previewed only applicable to one-line messages started with link * remove useless "Youtube" header when no title is available * allow breaking long links instead of toggle * simplify "/" to "/" replacing fix empty post without additional content body * discard buggy "simplification" --- webapp/components/rhs_root_post.jsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'webapp/components/rhs_root_post.jsx') diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index 051d68f34..e6edcb86a 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -210,6 +210,14 @@ export default class RhsRootPost extends React.Component { /> ); + const messageWrapper = ( +
+ ); + return (
{channelName}
@@ -241,13 +249,9 @@ export default class RhsRootPost extends React.Component {
-
{fileAttachment}
-- cgit v1.2.3-1-g7c22