-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abstract mobile transition interactions #4044
Conversation
This PR brought to you by a late night and a bottle of red wine |
8b498f1
to
4e664e4
Compare
}); | ||
if (post) { | ||
return self.transitionTo('posts.post', post); | ||
} | ||
else { |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@novaugust Seems to be a good bottle :) Nice refactoring / implementation of mobile transitions. |
Epic! 😁 |
Closes TryGhost#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"
4e664e4
to
09fb17a
Compare
LGTM! 👍 |
@ErisDS that's something completely separate from this, where each settings subroute has some complex logic to add and remove specific classnames. I don't think it belongs with this pr. |
I totes misunderstood what was meant by
|
Abstract mobile transition interactions
Closes #4032, ref #3950's "epic goal"
parent-view
,content-view
andindex-view
mobile/parent-view
has three callbacks for managing layout, and a mediaQuery listener to keep in sync with the usermobile-index-route
to intelligently transition to a new route on desktops (used by both PostsIndexRoute and SettingsIndexRoute)