浏览代码

style tweaks

Tienson Qin 9 月之前
父节点
当前提交
5ea345d872

+ 5 - 5
src/main/frontend/components/selection.cljs

@@ -1,12 +1,12 @@
 (ns frontend.components.selection
   "Block selection"
-  (:require [frontend.handler.editor :as editor-handler]
+  (:require [frontend.config :as config]
+            [frontend.handler.editor :as editor-handler]
             [frontend.state :as state]
             [frontend.ui :as ui]
             [frontend.util :as util]
             [logseq.shui.ui :as shui]
-            [rum.core :as rum]
-            [frontend.config :as config]))
+            [rum.core :as rum]))
 
 (rum/defc action-bar
   [& {:keys [on-cut on-copy selected-blocks hide-dots? button-border?]
@@ -17,9 +17,9 @@
                   (or on-copy #(editor-handler/copy-selection-blocks true)))
         button-opts {:variant :outline
                      :size :sm
-                     :class (str "px-2 py-1 text-xs text-muted-foreground"
+                     :class (str "p-2 text-xs h-8"
                                  (when-not button-border?
-                                   "border-y-0"))}
+                                   " !border-b-0"))}
         db-graph? (config/db-based-graph?)]
     [:div.selection-action-bar
      (shui/button-group

+ 1 - 5
src/main/frontend/components/views.cljs

@@ -409,11 +409,7 @@
   [table selected-rows {:keys [on-delete-rows]}]
   (shui/table-actions
    {}
-   (shui/button
-    {:variant "ghost"
-     :class "h-8 !pl-4 !px-2 !py-0 hover:text-foreground w-full justify-start"
-     :disabled true}
-    (str (count selected-rows) " selected"))
+   [:div (str (count selected-rows) " selected")]
    (selection/action-bar
     {:on-cut #(on-delete-rows table selected-rows)
      :selected-blocks selected-rows

+ 1 - 1
src/main/frontend/handler/events.cljs

@@ -1085,7 +1085,7 @@
          (selection/action-bar))
        {:id :selection-action-bar
         :content-props {:side "top"
-                        :class "!py-0 !px-0"}
+                        :class "!py-0 !px-0 !border-none"}
         :auto-side? false
         :align :start}))))