Skip to content

Commit

Permalink
Fix header sort icons
Browse files Browse the repository at this point in the history
  • Loading branch information
kimo-k committed May 8, 2024
1 parent 42d5bd5 commit c9bd3df
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
12 changes: 0 additions & 12 deletions run/resources/public/assets/css/re-com.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 1 addition & 2 deletions src/re_com/simple_v_table.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/re_com/v_table.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9bd3df

Please sign in to comment.