app/views/layouts/solidus_admin/preview.html.erb in solidus_admin-0.1.0 vs app/views/layouts/solidus_admin/preview.html.erb in solidus_admin-0.2.0
- old
+ new
@@ -1,7 +1,9 @@
<!DOCTYPE html>
<html>
<head>
+ <%= 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 %>
</head>
<body class="p-3">
<%= yield %>
</body>