Browse Source

enhance(ux): more interactive areas for table header columns button

charlie 1 year ago
parent
commit
bbf7d50fce
1 changed files with 3 additions and 6 deletions
  1. 3 6
      src/main/frontend/components/objects.cljs

+ 3 - 6
src/main/frontend/components/objects.cljs

@@ -59,8 +59,8 @@
                                     [asc?]))) sorting)]
                                     [asc?]))) sorting)]
     (shui/button
     (shui/button
      {:variant "text"
      {:variant "text"
-      :class "h-8 !pl-0 !py-0 hover:text-foreground"
-      :onClick #(column-toggle-sorting! column)}
+      :class "h-8 !pl-4 !py-0 hover:text-foreground w-full justify-start"
+      :on-click #(column-toggle-sorting! column)}
      (:name column)
      (:name column)
      (case asc?
      (case asc?
        true
        true
@@ -198,10 +198,7 @@
                        :content (let [header-fn (:header column)
                        :content (let [header-fn (:header column)
                                       width (get-column-size column)]
                                       width (get-column-size column)]
                                   [:div.ls-table-header-cell
                                   [:div.ls-table-header-cell
-                                   {:class (if (= :select (:id column))
-                                             ""
-                                             "px-4")
-                                    :style {:width width}}
+                                   {:style {:width width}}
                                    (if (fn? header-fn)
                                    (if (fn? header-fn)
                                      (header-fn table column)
                                      (header-fn table column)
                                      header-fn)])}) columns)]
                                      header-fn)])}) columns)]