]> cat aescling's git repositories - mastodon.git/commitdiff
Fix missing media: 'all' on default skins
authorClaire <claire.github-309c@sitedethib.com>
Sun, 16 Jan 2022 21:25:53 +0000 (22:25 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Sun, 16 Jan 2022 21:26:18 +0000 (22:26 +0100)
app/views/layouts/_theme.html.haml

index fe4e59280ea49f144c9c8dbfc90ce965b4574558..5dba77621bade94eb0cb41c34e6d61aea42e4d41 100644 (file)
@@ -8,7 +8,7 @@
       - if !theme[:flavour] || theme[:skin] == 'default'
         = stylesheet_pack_tag pack_path, media: 'all', crossorigin: 'anonymous'
       - else
-        = stylesheet_pack_tag "skins/#{theme[:flavour]}/#{theme[:skin]}/#{theme[:pack]}", crossorigin: 'anonymous'
+        = stylesheet_pack_tag "skins/#{theme[:flavour]}/#{theme[:skin]}/#{theme[:pack]}", media: 'all', crossorigin: 'anonymous'
     - if theme[:preload]
       - theme[:preload].each do |link|
         %link{ href: asset_pack_path("#{link}.js"), crossorigin: 'anonymous', rel: 'preload', as: 'script' }/