mirror of https://github.com/penpot/penpot.git
Show value instead of label, add title
This commit is contained in:
parent
019759392c
commit
7c80f87f30
|
|
@ -208,9 +208,10 @@
|
|||
|
||||
[:div {:class (dm/str class " " (stl/css :editable-select))
|
||||
:ref on-node-load}
|
||||
(when token
|
||||
[:div {:class (stl/css :token-pill)}
|
||||
(:label token)])
|
||||
(when-let [{:keys [label value]} token]
|
||||
[:div {:title (str label ": " value)
|
||||
:class (stl/css :token-pill)}
|
||||
value])
|
||||
(cond
|
||||
token [:input {:value (or (:token-value state) "")
|
||||
:class input-class
|
||||
|
|
|
|||
Loading…
Reference in New Issue