Skip to content

Commit

Permalink
Make card objects in prompts hover display card preview
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke committed Aug 5, 2019
1 parent d21d1f0 commit b26b39a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cljs/nr/gameboard.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,9 @@
(render-message c)]
[:button {:key (or (:cid c) i)
:class (when (:rotated c) :rotated)
:on-click #(send-command "choice" {:card c}) :id {:code c}} (:title c)])))
:on-click #(send-command "choice" {:card c})
:id {:code c}}
(render-message (:title c))])))
(:choices prompt))))]
(if @run
(let [rs (:server @run)
Expand Down

0 comments on commit b26b39a

Please sign in to comment.