mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
e48b5edbb4
Closes #4032 - Created "mobile" views: `parent-view`, `content-view` and `index-view` - `mobile/parent-view` has three callbacks for managing layout, and a mediaQuery listener to keep in sync with the user - content-view and index-view use their parent-views callbacks to bring themselves into and out of the viewport as appropriate - fixed media queries for post content list from 800px to 900px - Created `mobile-index-route` to intelligently transition to a new route on desktops (used by both PostsIndexRoute and SettingsIndexRoute) - Extract mobile interactions from settings views to new mobile utility views - `js-` prefixed settings view transitions - removed unused openEditor action from PostsRoute - removed unused mobile util "responsiveAction"
14 lines
478 B
JavaScript
14 lines
478 B
JavaScript
import MobileContentView from 'ghost/views/mobile/content-view';
|
|
/**
|
|
* All settings views other than the index should inherit from this base class.
|
|
* It ensures that the correct screen is showing when a mobile user navigates
|
|
* to a `settings.someRouteThatIsntIndex` route.
|
|
*/
|
|
|
|
var SettingsContentBaseView = MobileContentView.extend({
|
|
tagName: 'section',
|
|
classNames: ['settings-content', 'js-settings-content', 'fade-in']
|
|
});
|
|
|
|
export default SettingsContentBaseView;
|