Browse Source

Style tweaks

Tienson Qin 3 years ago
parent
commit
7c2eccd6f1
3 changed files with 7 additions and 7 deletions
  1. 1 1
      src/main/frontend/components/header.cljs
  2. 6 1
      src/main/frontend/components/header.css
  3. 0 5
      yarn.lock

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

@@ -283,7 +283,7 @@
          {:on-click #(route-handler/redirect! {:to :repo-add})}
          (ui/icon "folder-plus")
          (when-not config/mobile?
-           [:strong {:style {:margin-top (if electron-mac? 0 2)}}
+           [:span.ml-1 {:style {:margin-top (if electron-mac? 0 2)}}
             (t :on-boarding/add-graph)])])
 
       (when config/publishing?

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

@@ -201,7 +201,12 @@
 }
 
 .button.icon {
-  @apply w-8 h-8 text-lg p-1;
+  @apply w-8 h-8 p-1;
+}
+
+.button.icon.add-graph-btn {
+    width: unset;
+    margin: 0 6px;
 }
 
 .is-mac.is-electron :is(.cp__header, .cp__right-sidebar-topbar) :is(button, .button, a) {

+ 0 - 5
yarn.lock

@@ -6806,11 +6806,6 @@ [email protected]:
     react-draggable "3.x"
     react-resizable "1.x"
 
[email protected]:
-  version "2.1.0"
-  resolved "https://registry.yarnpkg.com/react-icon-base/-/react-icon-base-2.1.0.tgz#a196e33fdf1e7aaa1fda3aefbb68bdad9e82a79d"
-  integrity sha512-9wwKJa2LB8ujtJB5MAXYYEM7JfYThZTj0YnfGxzLLWkifaLIGc7iTde2EpJ7ka5MjneRHnlxbIn5VV9k2WjUVA==
-
 react-icon-base@^2.1.2:
   version "2.1.2"
   resolved "https://registry.yarnpkg.com/react-icon-base/-/react-icon-base-2.1.2.tgz#a17101dad9c1192652356096860a9ab43a0766c7"