mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 16:31:41 +02:00
✨ Update inspect-title-bar and copy-button to the new components format
This commit is contained in:
parent
625cbfc50a
commit
0901807db8
16 changed files with 80 additions and 82 deletions
|
@ -15,7 +15,7 @@
|
|||
[app.main.refs :as refs]
|
||||
[app.main.store :as st]
|
||||
[app.main.ui.components.color-bullet :as cb]
|
||||
[app.main.ui.components.copy-button :refer [copy-button]]
|
||||
[app.main.ui.components.copy-button :refer [copy-button*]]
|
||||
[app.main.ui.components.select :refer [select]]
|
||||
[app.main.ui.formats :as fmt]
|
||||
[app.util.i18n :refer [tr]]
|
||||
|
@ -75,8 +75,8 @@
|
|||
[:div {:class (stl/css :format-wrapper)}
|
||||
[:div {:class (stl/css :image-format)}
|
||||
(tr "media.image.short")]]
|
||||
[:& copy-button {:data copy-data
|
||||
:class (stl/css :color-row-copy-btn)}
|
||||
[:> copy-button* {:data copy-data
|
||||
:class (stl/css :color-row-copy-btn)}
|
||||
[:div {:class (stl/css-case :color-info true
|
||||
:two-line (some? color-library-name))}
|
||||
[:div {:class (stl/css :first-row)}
|
||||
|
@ -116,11 +116,11 @@
|
|||
(when (:gradient color)
|
||||
[:div {:class (stl/css :format-info)} "rgba"])]
|
||||
|
||||
[:& copy-button {:data copy-data
|
||||
:aria-label (tr "labels.copy-color")
|
||||
:class (stl/css-case :color-row-copy-btn true
|
||||
:one-line (not color-library-name)
|
||||
:two-line (some? color-library-name))}
|
||||
[:> copy-button* {:data copy-data
|
||||
:aria-label (tr "labels.copy-color")
|
||||
:class (stl/css-case :color-row-copy-btn true
|
||||
:one-line (not color-library-name)
|
||||
:two-line (some? color-library-name))}
|
||||
[:div {:class (stl/css :first-row)}
|
||||
[:div {:class (stl/css :name-opacity)}
|
||||
[:span {:class (stl/css-case :color-value-wrapper true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue