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:
parent
5e732a4d20
commit
9a4b6ab417
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue