From c9bd3df1b32a4e74d25619d9122cabedc7122efc Mon Sep 17 00:00:00 2001 From: Kimo Knowles Date: Wed, 8 May 2024 23:30:13 +0200 Subject: [PATCH] Fix header sort icons --- run/resources/public/assets/css/re-com.css | 12 ------------ src/re_com/simple_v_table.cljs | 3 +-- src/re_com/v_table.cljs | 1 - 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/run/resources/public/assets/css/re-com.css b/run/resources/public/assets/css/re-com.css index 4cd0c3e8..3683f9ae 100644 --- a/run/resources/public/assets/css/re-com.css +++ b/run/resources/public/assets/css/re-com.css @@ -1423,15 +1423,3 @@ code { .rc-typeahead-suggestion.active { background-color: #ddd; } - -/*---------------------------------------------------------------------------------------- - simple-v-table -----------------------------------------------------------------------------------------*/ - -.rc-v-table-column-headers .rc-simple-v-table-column-header-sort-label { - opacity: 0; -} -dts -.rc-v-table-column-headers:hover .rc-simple-v-table-column-header-sort-label { - opacity: 0.25; -} diff --git a/src/re_com/simple_v_table.cljs b/src/re_com/simple_v_table.cljs index a6e0391c..72e17aa2 100644 --- a/src/re_com/simple_v_table.cljs +++ b/src/re_com/simple_v_table.cljs @@ -105,10 +105,9 @@ :children [header-label (when sort-by [h-box - :class (str "rc-simple-v-table-column-header-sort-label " (when current-order "rc-simple-v-table-column-header-sort-active")) :min-width "35px" - :style (when current-order {:opacity 0.3}) :justify :center + :style {:opacity 0.5} :align :center :children (if-not (or @hover? current-order) diff --git a/src/re_com/v_table.cljs b/src/re_com/v_table.cljs index ee3f1e2d..aa950d6a 100644 --- a/src/re_com/v_table.cljs +++ b/src/re_com/v_table.cljs @@ -1037,7 +1037,6 @@ :component-did-update (fn v-table-component-did-update [this [_ & {old-sort-keyfn :sort-keyfn old-sort-comp :sort-comp :as old-args}]] - (println "Component!") (let [[_ & {new-sort-keyfn :sort-keyfn new-sort-comp :sort-comp :as new-args}] (reagent/argv this)] (when (or (not= old-sort-keyfn new-sort-keyfn) (not= new-sort-comp old-sort-comp)) (cond