mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 21:35:48 +08:00
UX: make it easier to collapse the timeline from fullscreen
This commit is contained in:
parent
7f58ffb196
commit
9457b03da1
|
@ -46,7 +46,8 @@ export default Ember.Component.extend({
|
|||
_expanded() {
|
||||
if (this.get('info.topicProgressExpanded')) {
|
||||
$(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();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -46,6 +46,9 @@
|
|||
border-top: 1px solid dark-light-choose(scale-color($primary, $lightness: 90%), scale-color($secondary, $lightness: 90%));
|
||||
padding-top: 15px;
|
||||
z-index: 100000;
|
||||
.timeline-scrollarea {
|
||||
max-width: 200px;
|
||||
}
|
||||
.topic-timeline {
|
||||
width: auto;
|
||||
margin-left: 1.5em;
|
||||
|
|
Loading…
Reference in New Issue
Block a user