UX: make it easier to collapse the timeline from fullscreen

This commit is contained in:
Sam 2016-10-20 10:14:53 +11:00
parent 7f58ffb196
commit 9457b03da1
2 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,8 @@ export default Ember.Component.extend({
_expanded() { _expanded() {
if (this.get('info.topicProgressExpanded')) { if (this.get('info.topicProgressExpanded')) {
$(window).on('click.hide-fullscreen', (e) => { $(window).on('click.hide-fullscreen', (e) => {
if (!$(e.target).parents().is('.timeline-container, #topic-progress-wrapper')) { if ( $(e.target).is('.topic-timeline') ||
!$(e.target).parents().is('.timeline-container, #topic-progress-wrapper')) {
this._collapseFullscreen(); this._collapseFullscreen();
} }
}); });

View File

@ -46,6 +46,9 @@
border-top: 1px solid dark-light-choose(scale-color($primary, $lightness: 90%), scale-color($secondary, $lightness: 90%)); border-top: 1px solid dark-light-choose(scale-color($primary, $lightness: 90%), scale-color($secondary, $lightness: 90%));
padding-top: 15px; padding-top: 15px;
z-index: 100000; z-index: 100000;
.timeline-scrollarea {
max-width: 200px;
}
.topic-timeline { .topic-timeline {
width: auto; width: auto;
margin-left: 1.5em; margin-left: 1.5em;