Skip to content

Commit

Permalink
[nested-grid] Only resize headers with cells
Browse files Browse the repository at this point in the history
  • Loading branch information
kimo-k committed Apr 13, 2024
1 parent 7c554e9 commit ad68e5b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/re_com/nested_grid.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,9 @@
:position "relative"}}
[:div (theme/apply {} {:state {} :part ::column-header-wrapper} theme)
[u/part column-header props column-header-part]]
[resize-button (merge props {:dimension :column
:path column-path})]])
(when show?
[resize-button (merge props {:dimension :column
:path column-path})])])

(defn row-header-part [{:keys [row-path]}]
(header-label row-path))
Expand All @@ -412,8 +413,9 @@
:position "relative"}}
[:div (theme/apply {} {:state {} :part ::row-header-wrapper} theme)
[u/part row-header props row-header-part]]
[resize-button (merge props {:dimension :row
:path row-path})]])
(when show?
[resize-button (merge props {:dimension :row
:path row-path})])])

(def level count)

Expand Down

0 comments on commit ad68e5b

Please sign in to comment.