From c016d80d9eee35d628fdce98053af7627a325b85 Mon Sep 17 00:00:00 2001 From: Elia Schito Date: Tue, 2 Jan 2024 13:20:32 +0100 Subject: [PATCH] Add back styles to the preview layout --- admin/app/views/layouts/solidus_admin/preview.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/app/views/layouts/solidus_admin/preview.html.erb b/admin/app/views/layouts/solidus_admin/preview.html.erb index 19e4e2f5b0f..9f49be0b71a 100644 --- a/admin/app/views/layouts/solidus_admin/preview.html.erb +++ b/admin/app/views/layouts/solidus_admin/preview.html.erb @@ -1,6 +1,8 @@ + <%= stylesheet_link_tag SolidusAdmin::Config.theme_path(session[:admin_light_theme]), media: '(prefers-color-scheme: light)', "data-turbo-track": "reload" %> + <%= stylesheet_link_tag SolidusAdmin::Config.theme_path(session[:admin_dark_theme]), media: '(prefers-color-scheme: dark)', "data-turbo-track": "reload" %> <%= javascript_importmap_tags "solidus_admin/application", shim: false, importmap: SolidusAdmin.importmap %>