From 8e96219ea61bb391b4900316a9f971dbee378030 Mon Sep 17 00:00:00 2001 From: Edwin Mak Date: Tue, 26 Sep 2023 06:49:04 -0500 Subject: [PATCH] Add simplebar which was missing to get sidebar styling correct --- app/views/layouts/shared/_head.html.erb | 1 + config/importmap.rb | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/app/views/layouts/shared/_head.html.erb b/app/views/layouts/shared/_head.html.erb index b75e7bcc0..15851e494 100644 --- a/app/views/layouts/shared/_head.html.erb +++ b/app/views/layouts/shared/_head.html.erb @@ -14,6 +14,7 @@ <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> <%= javascript_importmap_tags %> + <% if content_for?(:head) %> <%= yield(:head) %> diff --git a/config/importmap.rb b/config/importmap.rb index f7ac6a097..cede34b68 100644 --- a/config/importmap.rb +++ b/config/importmap.rb @@ -12,3 +12,7 @@ pin "chartkick", to: "chartkick.js" pin "Chart.bundle", to: "Chart.bundle.js" +pin "simplebar", to: "https://ga.jspm.io/npm:simplebar@6.2.5/dist/index.mjs" +pin "can-use-dom", to: "https://ga.jspm.io/npm:can-use-dom@0.1.0/index.js" +pin "lodash-es", to: "https://ga.jspm.io/npm:lodash-es@4.17.21/lodash.js" +pin "simplebar-core", to: "https://ga.jspm.io/npm:simplebar-core@1.2.4/dist/index.mjs"