mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
5e3de1c333
no issue - the autonav behaviour has outlasted it's usefulness - it was mostly useful for editing but the editor screen is now always fullscreen and the number of low-resolution screens has dropped significantly - dropped the components and all supporting code associated with autonav behaviour
25 lines
430 B
JavaScript
25 lines
430 B
JavaScript
/*
|
|
|
|
Implements a div for covering the page content
|
|
when in a menu context that, for example,
|
|
should be closed when the user clicks elsewhere.
|
|
|
|
Example:
|
|
```
|
|
{{gh-content-cover}}
|
|
```
|
|
**/
|
|
|
|
import Component from '@ember/component';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default Component.extend({
|
|
ui: service(),
|
|
|
|
classNames: ['content-cover'],
|
|
|
|
click() {
|
|
this.get('ui').closeMenus();
|
|
}
|
|
});
|