Ghost/core/client/app/templates/settings
Matthew Beale 402b27c7e9 Unify mobile state in JS, drop resize
In `gh-content-view-container` the visibility of another DOM node was
being used to detect if a given view was mobile or not. This means the
UI needed to have layout forced (and DOM rendered) before the content
view container would render a second time. This is slow interaction with
the DOM (forcing layout) and slow for Ember's renderer (it needs to
render the container once with a default, then again when the value
changes).

Additionally there were two ways resize was being observed. The
`Window.matchMedia` API was used for some styles and the `ember-resize`
addon used to detect other changes. Here I've unified around just the
`Window.matcheMedia` API but abstracted it behind a service.

Sizes are exposed as properties that can be bound to or used directly in
templates.
2015-11-25 11:54:08 -05:00
..
tags Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00
code-injection.hbs Spin button consistency 2015-08-26 16:21:42 +01:00
general.hbs Form field icons load in default 'grey' state 2015-09-01 13:02:27 +01:00
labs.hbs Update public API labs flag text 2015-11-17 21:28:16 +00:00
navigation.hbs Spin button consistency 2015-08-26 16:21:42 +01:00
tags.hbs Unify mobile state in JS, drop resize 2015-11-25 11:54:08 -05:00