From 3f2495a7aef66018748734a9e3dcf31389178560 Mon Sep 17 00:00:00 2001 From: Panthevm Date: Fri, 4 Aug 2023 17:04:51 +0300 Subject: [PATCH] Update sidebar --- src/suitkin/components/sidebar/styles.cljc | 1 + src/suitkin/components/sidebar/view.cljc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/suitkin/components/sidebar/styles.cljc b/src/suitkin/components/sidebar/styles.cljc index 20876d0..79f09f3 100644 --- a/src/suitkin/components/sidebar/styles.cljc +++ b/src/suitkin/components/sidebar/styles.cljc @@ -6,6 +6,7 @@ (c [:w "240px"] [:h "100vh"] {:color "var(--basic-gray-7)" + :background-color "white" :font-size "14px" :display "flex" :flex-flow "column" diff --git a/src/suitkin/components/sidebar/view.cljc b/src/suitkin/components/sidebar/view.cljc index c4ee52e..0d99e76 100644 --- a/src/suitkin/components/sidebar/view.cljc +++ b/src/suitkin/components/sidebar/view.cljc @@ -13,7 +13,7 @@ (defn menu-item [item & [padding]] [:div {:class s/menu-item :style {:padding-left (str padding "px")}} - [:div + [:a (select-keys item [:on-click :href :title]) [:img {:src (u/public-src (:img item)) :class (c [:pr "8px"])}] [:span (:title item)]] (when (:items item)