浏览代码

Style tweaks

Tienson Qin 3 年之前
父节点
当前提交
5a245fce7a
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 2 2
      src/main/frontend/components/header.cljs
  2. 4 0
      src/main/frontend/components/header.css

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

@@ -242,7 +242,7 @@
                                       (.. target -classList (contains "cp__header")))
                              (js/window.apis.toggleMaxOrMinActiveWindow))))
       :style           {:fontSize  50}}
-     [:div.l.flex.gap-1
+     [:div.l.flex
       (when-not (mobile-util/native-platform?)
         [left-menu
          (when current-repo ;; this is for the Search button
@@ -261,7 +261,7 @@
              {:title "Go back" :on-click #(js/window.history.back)}
              (ui/icon "chevron-left" {:style {:fontSize 25}})])))]
 
-     [:div.r.flex.gap-1
+     [:div.r.flex
       (when-not file-sync-handler/hiding-login&file-sync
         (file-sync))
       (when-not file-sync-handler/hiding-login&file-sync

+ 4 - 0
src/main/frontend/components/header.css

@@ -53,6 +53,10 @@
     }
   }
 
+  .ui-items-container .button {
+    width: 2rem;
+  }
+
   svg.warning {
     transform: scale(0.6);
     color: red;