0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

Improved coordenates component.

This commit is contained in:
Andrey Antukh 2016-02-15 22:56:15 +02:00
parent 5e732a4d20
commit 9a4b6ab417

View file

@ -28,11 +28,8 @@
[own]
(let [{:keys [x y]} (rum/react wb/mouse-position)]
(html
[:div {:style {:position "absolute" :left "80px" :top "20px"}}
[:table
[:tbody
[:tr [:td "x="] [:td x]]
[:tr [:td "y="] [:td y]]]]])))
[:div {:style {:position "absolute" :left "50px" :top "25px"}}
[:span (str "| x=" x " | y=" y " |")]])))
(def coordinates
(mx/component