mirror of
https://github.com/penpot/penpot.git
synced 2026-04-29 05:08:08 +00:00
Zoom control widget on the workspace header
This commit is contained in:
parent
5aa629d4d4
commit
66c56a367e
@ -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…
x
Reference in New Issue
Block a user