diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-12-15 16:31:07 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-12-16 09:55:00 -0500 |
commit | c7fb1f7fe94cd018daa7de2b85a2246eaff9f111 (patch) | |
tree | 3ceedc017821494d6d386d7db3185aba5abc656f | |
parent | 07638f7e7dd6718155eb650562d71063e7756de5 (diff) | |
download | chat-c7fb1f7fe94cd018daa7de2b85a2246eaff9f111.tar.gz chat-c7fb1f7fe94cd018daa7de2b85a2246eaff9f111.tar.bz2 chat-c7fb1f7fe94cd018daa7de2b85a2246eaff9f111.zip |
Hid floating timestamp header on non-mobile
-rw-r--r-- | web/react/components/posts_view.jsx | 5 | ||||
-rw-r--r-- | web/sass-files/sass/partials/_post.scss | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx index 187cf2a71..a4dd51e19 100644 --- a/web/react/components/posts_view.jsx +++ b/web/react/components/posts_view.jsx @@ -94,6 +94,11 @@ export default class PostsView extends React.Component { }); } updateFloatingTimestamp() { + // skip this in non-mobile view since that's when the timestamp is visible + if ($(window).width() > 768) { + return; + } + if (this.props.postList) { // iterate through posts starting at the bottom since users are more likely to be viewing newer posts for (let i = 0; i < this.props.postList.order.length; i++) { diff --git a/web/sass-files/sass/partials/_post.scss b/web/sass-files/sass/partials/_post.scss index 9acac9532..88842c973 100644 --- a/web/sass-files/sass/partials/_post.scss +++ b/web/sass-files/sass/partials/_post.scss @@ -265,6 +265,7 @@ body.ios { @include single-transition(all, 0.3s, ease); @include translateY(-45px); @include opacity(0); + display: none; &.scrolling { @include single-transition(all, 0.3s, ease); |