mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 14:12:36 -05:00
Show value instead of label, add title
This commit is contained in:
parent
019759392c
commit
7c80f87f30
1 changed files with 4 additions and 3 deletions
|
@ -208,9 +208,10 @@
|
||||||
|
|
||||||
[:div {:class (dm/str class " " (stl/css :editable-select))
|
[:div {:class (dm/str class " " (stl/css :editable-select))
|
||||||
:ref on-node-load}
|
:ref on-node-load}
|
||||||
(when token
|
(when-let [{:keys [label value]} token]
|
||||||
[:div {:class (stl/css :token-pill)}
|
[:div {:title (str label ": " value)
|
||||||
(:label token)])
|
:class (stl/css :token-pill)}
|
||||||
|
value])
|
||||||
(cond
|
(cond
|
||||||
token [:input {:value (or (:token-value state) "")
|
token [:input {:value (or (:token-value state) "")
|
||||||
:class input-class
|
:class input-class
|
||||||
|
|
Loading…
Add table
Reference in a new issue