From e015a7cd595271306d14e3d50a3b154aa2902f19 Mon Sep 17 00:00:00 2001 From: Kimo Knowles Date: Wed, 8 May 2024 23:43:14 +0200 Subject: [PATCH] Code Format --- src/re_com/simple_v_table.cljs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/re_com/simple_v_table.cljs b/src/re_com/simple_v_table.cljs index b798ade1..c9f264d8 100644 --- a/src/re_com/simple_v_table.cljs +++ b/src/re_com/simple_v_table.cljs @@ -278,8 +278,8 @@ [& {:keys [src] :as static-args}] (or (validate-args-macro simple-v-table-args-desc static-args) - (let [sort-by-column (reagent/atom nil) - header-hover? (reagent/atom nil)] + (let [sort-by-column (reagent/atom nil) + header-hover? (reagent/atom nil)] (fn simple-v-table-render [& {:as dynamic-args}] (or @@ -309,10 +309,10 @@ :debug-as (or debug-as (reflect-current-component)) :class (str "rc-simple-v-table-wrapper " (get-in parts [:simple-wrapper :class])) :style (merge {;; :flex setting - ;; When max-rows is being used: - ;; - "0 1 auto" allows shrinking within parent but not growing (to prevent vertical spill) - ;; Otherwise: - ;; - "100%" used instead of 1 to resolve conflicts when simple-v-table is the anchor of a popover (e.g. the periodic table demo) + ;; When max-rows is being used: + ;; - "0 1 auto" allows shrinking within parent but not growing (to prevent vertical spill) + ;; Otherwise: + ;; - "100%" used instead of 1 to resolve conflicts when simple-v-table is the anchor of a popover (e.g. the periodic table demo) :flex (if max-rows "0 1 auto" "100%") :background-color "white" ;; DEBUG "salmon" :padding (px table-padding) @@ -348,8 +348,8 @@ [export-button-renderer {:rows rows :columns columns :on-export (fn [_] (on-export {:columns columns - :rows (cond->> rows - sort-by-column (sort (multi-comparator (->v sort-by-column))))}))}])) + :rows (cond->> rows + sort-by-column (sort (multi-comparator (->v sort-by-column))))}))}])) ;; ===== Styling :class class :parts (cond-> {:wrapper {:style {:font-size "13px"