Hid floating timestamp header on non-mobile

Этот коммит содержится в:
hmhealey
2015-12-15 16:31:07 -05:00
родитель 07638f7e7d
Коммит c7fb1f7fe9
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@@ -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++) {

Просмотреть файл

@@ -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);