mirror of
https://github.com/penpot/penpot.git
synced 2025-04-01 09:31:26 -05:00
Zoom control widget on the workspace header
This commit is contained in:
parent
5aa629d4d4
commit
66c56a367e
1 changed files with 7 additions and 3 deletions
|
@ -41,9 +41,13 @@
|
|||
[:li.coordinates {:alt "y"}
|
||||
(str "Y: " (:y coords "-"))]
|
||||
[:li.zoom-input
|
||||
[:span.add-zoom "+"]
|
||||
[:span "100%"]
|
||||
[:span.remove-zoom "-"]]])))
|
||||
[:span.add-zoom
|
||||
{:on-click #(rs/emit! (dw/increase-zoom))}
|
||||
"+"]
|
||||
[:span (str (mth/round (* 100 zoom)) "%")]
|
||||
[:span.remove-zoom
|
||||
{:on-click #(rs/emit! (dw/decrease-zoom))}
|
||||
"-"]]])))
|
||||
|
||||
(def coordinates
|
||||
(mx/component
|
||||
|
|
Loading…
Add table
Reference in a new issue