mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -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))
|
||||
: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…
Add table
Reference in a new issue