FIX: Use visibility: hidden to hide the buttons to avoid scrolling

This commit is contained in:
Robin Ward 2016-05-27 13:37:28 -04:00
parent 7a66127a01
commit bebc907243
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
2 changed files with 6 additions and 1 deletions

View File

@ -234,7 +234,7 @@ export default createWidget('topic-timeline', {
action: 'jumpBottom' action: 'jumpBottom'
})]); })]);
if (currentUser && !attrs.dockAt) { if (currentUser) {
const controls = []; const controls = [];
if (attrs.topic.get('details.can_create_post')) { if (attrs.topic.get('details.can_create_post')) {
controls.push(this.attach('button', { controls.push(this.attach('button', {

View File

@ -11,6 +11,11 @@
&.timeline-docked { &.timeline-docked {
position: absolute; position: absolute;
.timeline-footer-controls {
background-color: yellow;
visibility: hidden;
}
} }
.topic-timeline { .topic-timeline {