Ghost/ghost/admin/app/components/gh-browser-preview.js
Kevin Ansfield 019b22caa1 Added desktop/mobile switch to <GhBrowserPreview> component
refs https://github.com/TryGhost/Team/issues/1310

- we had a `<GhBrowserPreview>` component but it wasn't being used everywhere because it's behaviour didn't match the mobile/desktop switch with no iframe re-render that we needed for some screens
- updated component to match all required behaviour
  - include a switch between desktop and mobile views
  - default fallbacks for `@title` and `@icon` arguments
- switched design settings themes over to using the component instead of repeating the same set of markup
2022-02-04 10:28:20 +00:00

7 lines
178 B
JavaScript

import Component from '@glimmer/component';
import {inject as service} from '@ember/service';
export default class GhBrowserPreview extends Component {
@service settings;
}