0
Fork 0
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:
Florian Schroedl 2024-05-22 14:13:23 +02:00
parent 019759392c
commit 7c80f87f30

View file

@ -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