From 3f0dbb0e8ba9fdeec76d4312371668190362daee Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 18 Oct 2021 17:22:36 +0100 Subject: [PATCH] Added desktop/mobile toggle to view-theme screen refs https://github.com/TryGhost/Team/issues/1149 - re-used same desktop/mobile toggle that the main design settings screen uses --- .../components/modals/design/view-theme.hbs | 31 +++++++++++++++++-- .../components/modals/design/view-theme.js | 16 ++++++++++ 2 files changed, 44 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/components/modals/design/view-theme.hbs b/ghost/admin/app/components/modals/design/view-theme.hbs index e73feabee0..eec37daabc 100644 --- a/ghost/admin/app/components/modals/design/view-theme.hbs +++ b/ghost/admin/app/components/modals/design/view-theme.hbs @@ -7,13 +7,38 @@
+
+ + +
+
- - - + {{!-- changes only classes between desktop/mobile to avoid re-rendering iframe contents --}} +
+ {{#if this.isDesktopPreview}} +
+
+
+
+ {{#if this.settings.icon}} + icon + {{else}} + {{svg-jar "default-favicon"}} + {{/if}} + {{this.settings.title}} +
+
+
+ {{/if}} +
+
+