mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 02:46:20 +00:00
Use constants on workspace settings lightbox.
This commit is contained in:
parent
d69be9a378
commit
b920342188
@ -9,6 +9,7 @@
|
|||||||
(:require [sablono.core :as html :refer-macros [html]]
|
(:require [sablono.core :as html :refer-macros [html]]
|
||||||
[lentes.core :as l]
|
[lentes.core :as l]
|
||||||
[rum.core :as rum]
|
[rum.core :as rum]
|
||||||
|
[uxbox.constants :as c]
|
||||||
[uxbox.rstore :as rs]
|
[uxbox.rstore :as rs]
|
||||||
[uxbox.data.pages :as udp]
|
[uxbox.data.pages :as udp]
|
||||||
[uxbox.ui.icons :as i]
|
[uxbox.ui.icons :as i]
|
||||||
@ -55,15 +56,14 @@
|
|||||||
[:input#grid-x.input-text
|
[:input#grid-x.input-text
|
||||||
{:placeholder "X px"
|
{:placeholder "X px"
|
||||||
:type "number"
|
:type "number"
|
||||||
;; TODO: put here the default from constants
|
:value (:grid/x-axis opts c/grid-x-axis)
|
||||||
:value (:grid/x-axis opts "10")
|
|
||||||
:on-change (partial on-field-change :grid/x-axis)
|
:on-change (partial on-field-change :grid/x-axis)
|
||||||
:min 1 ;;TODO check this value
|
:min 1
|
||||||
:max 100}]
|
:max 100}]
|
||||||
[:input#grid-y.input-text
|
[:input#grid-y.input-text
|
||||||
{:placeholder "Y px"
|
{:placeholder "Y px"
|
||||||
:type "number"
|
:type "number"
|
||||||
:value (:grid/y-axis opts "10")
|
:value (:grid/y-axis opts c/grid-y-axis)
|
||||||
:on-change (partial on-field-change :grid/y-axis)
|
:on-change (partial on-field-change :grid/y-axis)
|
||||||
:min 1
|
:min 1
|
||||||
:max 100}]]
|
:max 100}]]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user