Browse Source

fix(ui): icons wrap size of head-bar

charlie 4 years ago
parent
commit
ba6d7930f8

+ 1 - 1
src/main/frontend/components/header.cljs

@@ -224,7 +224,7 @@
           [:a.text-sm.font-medium.button
            {:on-click #(page-handler/ls-dir-files! shortcut/refresh!)}
            [:div.flex.flex-row.text-center.open-button__inner.items-center
-            [:span.inline-block.open-button__icon-wrapper svg/folder-add]
+            (ui/icon "folder-plus")
             (when-not config/mobile?
               [:span.ml-1 {:style {:margin-top (if electron-mac? 0 2)}}
                (t :open)])]])

+ 1 - 2
src/main/frontend/components/header.css

@@ -33,8 +33,7 @@
   a.button {
     margin: 0 4px;
     height: 30px;
-    width: 30px;
-    padding: 0;
+    min-width: 30px;
     display: flex;
     align-items: center;
     justify-content: center;