summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-01-30 18:19:45 +0900
committerGeorge Goldberg <george@gberg.me>2017-01-30 09:19:45 +0000
commit3e2f879b77b9b9d089bc8f83304b8b21b83c5bd9 (patch)
tree5e010af013e7cdd19b4b6bae0d8903cd34baafe0 /webapp/components/post_view
parent65b76c2712eea4daa1633e4652fa3cd51037e854 (diff)
downloadchat-3e2f879b77b9b9d089bc8f83304b8b21b83c5bd9.tar.gz
chat-3e2f879b77b9b9d089bc8f83304b8b21b83c5bd9.tar.bz2
chat-3e2f879b77b9b9d089bc8f83304b8b21b83c5bd9.zip
Add Floating Timestamp to Right Hand Side on Mobile #5163 (#5201)
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r--webapp/components/post_view/components/floating_timestamp.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/post_view/components/floating_timestamp.jsx b/webapp/components/post_view/components/floating_timestamp.jsx
index 8974c62c5..642b54c5d 100644
--- a/webapp/components/post_view/components/floating_timestamp.jsx
+++ b/webapp/components/post_view/components/floating_timestamp.jsx
@@ -37,6 +37,10 @@ export default class FloatingTimestamp extends React.Component {
className += ' scrolling';
}
+ if (this.props.isRhsPost) {
+ className += ' rhs';
+ }
+
return (
<div className={className}>
<div>
@@ -50,5 +54,6 @@ export default class FloatingTimestamp extends React.Component {
FloatingTimestamp.propTypes = {
isScrolling: React.PropTypes.bool.isRequired,
isMobile: React.PropTypes.bool,
- createAt: React.PropTypes.number
+ createAt: React.PropTypes.number,
+ isRhsPost: React.PropTypes.bool
};