summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2017-05-30 20:19:29 +0500
committerCorey Hulen <corey@hulen.com>2017-05-30 08:19:29 -0700
commitb2453735b2109f8039204e59cece98cbac7bc3e7 (patch)
treec19b4320467d8ba128e75e3c458af963bf22101c /webapp/components/post_view
parent860e5d483cd952ec833c40312a2141bb3e4ef579 (diff)
downloadchat-b2453735b2109f8039204e59cece98cbac7bc3e7.tar.gz
chat-b2453735b2109f8039204e59cece98cbac7bc3e7.tar.bz2
chat-b2453735b2109f8039204e59cece98cbac7bc3e7.zip
Minor Ui improvements (#6515)
* PLT-6645 - Improving copy pasting behaviour * PLT-6149 - Fixing edited indicator in search
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r--webapp/components/post_view/components/post_header.jsx12
-rw-r--r--webapp/components/post_view/components/post_info.jsx16
2 files changed, 14 insertions, 14 deletions
diff --git a/webapp/components/post_view/components/post_header.jsx b/webapp/components/post_view/components/post_header.jsx
index ce67cd653..570a04f8f 100644
--- a/webapp/components/post_view/components/post_header.jsx
+++ b/webapp/components/post_view/components/post_header.jsx
@@ -53,7 +53,7 @@ export default class PostHeader extends React.Component {
);
}
- botIndicator = <li className='bot-indicator'>{Constants.BOT_NAME}</li>;
+ botIndicator = <div className='bot-indicator'>{Constants.BOT_NAME}</div>;
} else if (isSystemMessage) {
userProfile = (
<UserProfile
@@ -75,10 +75,10 @@ export default class PostHeader extends React.Component {
}
return (
- <ul className='post__header'>
- <li className='col col__name'>{userProfile}{colon}</li>
+ <div className='post__header'>
+ <div className='col col__name'>{userProfile}{colon}</div>
{botIndicator}
- <li className='col'>
+ <div className='col'>
<PostInfo
post={post}
lastPostCount={this.props.lastPostCount}
@@ -92,8 +92,8 @@ export default class PostHeader extends React.Component {
useMilitaryTime={this.props.useMilitaryTime}
isFlagged={this.props.isFlagged}
/>
- </li>
- </ul>
+ </div>
+ </div>
);
}
}
diff --git a/webapp/components/post_view/components/post_info.jsx b/webapp/components/post_view/components/post_info.jsx
index 06e7b33fd..74ce32817 100644
--- a/webapp/components/post_view/components/post_info.jsx
+++ b/webapp/components/post_view/components/post_info.jsx
@@ -388,16 +388,16 @@ export default class PostInfo extends React.Component {
let options;
if (isEphemeral) {
options = (
- <li className='col col__remove'>
+ <div className='col col__remove'>
{this.createRemovePostButton()}
- </li>
+ </div>
);
} else if (!isPending) {
const dropdown = this.createDropdown(isSystemMessage);
if (dropdown) {
options = (
- <li className='col col__reply'>
+ <div className='col col__reply'>
<div
className='dropdown'
ref='dotMenu'
@@ -406,7 +406,7 @@ export default class PostInfo extends React.Component {
</div>
{react}
{comments}
- </li>
+ </div>
);
}
}
@@ -424,8 +424,8 @@ export default class PostInfo extends React.Component {
}
return (
- <ul className='post__header--info'>
- <li className='col'>
+ <div className='post__header--info'>
+ <div className='col'>
<PostTime
eventTime={post.create_at}
sameUser={this.props.sameUser}
@@ -442,9 +442,9 @@ export default class PostInfo extends React.Component {
isFlagged={this.props.isFlagged}
isEphemeral={isEphemeral}
/>
- </li>
+ </div>
{options}
- </ul>
+ </div>
);
}
}