Skip to content

Commit

Permalink
Fix tag-dropdown tag alignment in selection-list popover
Browse files Browse the repository at this point in the history
  • Loading branch information
superstructor committed Jan 22, 2021
1 parent 607456b commit 9105158
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/re_com/tag_dropdown.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@
[v-box
:align :start
:children [[h-box
;:align :center
:align-self :center
:justify (if placeholder? :end :center)
:align-self :start
:justify (if placeholder? :end :center)

;:width (if placeholder? (:width tag-data) width)

Expand All @@ -91,7 +90,7 @@
:style (merge
{:color "white"
:background-color (:background-color tag-data)
:cursor (if (and placeholder? (not disabled?)) "pointer" "default")
:cursor (if (not disabled?) "pointer" "default")
:font-size "12px"
;:font-weight "bold"
:border border
Expand Down Expand Up @@ -187,12 +186,12 @@
:hide-border? true
:label-fn (fn [tag]
[tag-comp
:label-fn label-fn
:label-fn label-fn
:description-fn description-fn
:tag-data tag
:width tag-width
:height tag-height
:style style])
:tag-data tag
:width tag-width
:height tag-height
:style style])
:item-renderer as-checked
:model model
:on-change #(on-change %)
Expand Down

0 comments on commit 9105158

Please sign in to comment.