mirror of
https://github.com/penpot/penpot.git
synced 2025-02-11 09:38:56 -05:00
🐛 Fix shadow type text in handoff section
This commit is contained in:
parent
fc2a26f249
commit
5f6cb1e0d7
3 changed files with 14 additions and 20 deletions
|
@ -24,6 +24,9 @@
|
|||
- Redesign of workspace toolbars [Taiga #2319](https://tree.taiga.io/project/penpot/us/2319)
|
||||
|
||||
### :bug: Bugs fixed
|
||||
|
||||
- Fixed handoff shadow type text [Taiga #2717](https://tree.taiga.io/project/penpot/issue/2717)
|
||||
|
||||
### :arrow_up: Deps updates
|
||||
### :heart: Community contributions by (Thank you!)
|
||||
|
||||
|
|
|
@ -233,10 +233,7 @@
|
|||
|
||||
.attributes-shadow {
|
||||
display: flex;
|
||||
|
||||
.attributes-label {
|
||||
margin-right: 2px;
|
||||
}
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -35,22 +35,18 @@
|
|||
(let [color-format (mf/use-state :hex)]
|
||||
[:div.attributes-shadow-block
|
||||
[:div.attributes-shadow-row
|
||||
[:div.attributes-label (->> shadow :style d/name (str "handoff.attributes.shadow.style.") (tr))]
|
||||
[:div.attributes-shadow
|
||||
[:div.attributes-label (tr "handoff.attributes.shadow.shorthand.offset-x")]
|
||||
[:div.attributes-value (str (:offset-x shadow))]]
|
||||
[:div.attributes-label (->> shadow :style d/name (str "workspace.options.shadow-options.") (tr))]
|
||||
[:div.attributes-shadow {:title (tr "workspace.options.shadow-options.offsetx")}
|
||||
[:div.attributes-value (str (:offset-x shadow) "px")]]
|
||||
|
||||
[:div.attributes-shadow
|
||||
[:div.attributes-label (tr "handoff.attributes.shadow.shorthand.offset-y")]
|
||||
[:div.attributes-value (str (:offset-y shadow))]]
|
||||
[:div.attributes-shadow {:title (tr "workspace.options.shadow-options.offsety")}
|
||||
[:div.attributes-value (str (:offset-y shadow) "px")]]
|
||||
|
||||
[:div.attributes-shadow
|
||||
[:div.attributes-label (tr "handoff.attributes.shadow.shorthand.blur")]
|
||||
[:div.attributes-value (str (:blur shadow))]]
|
||||
[:div.attributes-shadow {:title (tr "workspace.options.shadow-options.blur")}
|
||||
[:div.attributes-value (str (:blur shadow) "px")]]
|
||||
|
||||
[:div.attributes-shadow
|
||||
[:div.attributes-label (tr "handoff.attributes.shadow.shorthand.spread")]
|
||||
[:div.attributes-value (str (:spread shadow))]]
|
||||
[:div.attributes-shadow {:title (tr "workspace.options.shadow-options.spread")}
|
||||
[:div.attributes-value (str (:spread shadow) "px")]]
|
||||
|
||||
[:& copy-button {:data (shadow-copy-data shadow)}]]
|
||||
|
||||
|
@ -63,9 +59,7 @@
|
|||
(when (and (seq shapes) (> (count shapes) 0))
|
||||
[:div.attributes-block
|
||||
[:div.attributes-block-title
|
||||
[:div.attributes-block-title-text (tr "handoff.attributes.shadow")]
|
||||
(when (= (count shapes) 1)
|
||||
[:& copy-button {:data (shape-copy-data (first shapes))}])]
|
||||
[:div.attributes-block-title-text (tr "handoff.attributes.shadow")]]
|
||||
|
||||
[:div.attributes-shadow-blocks
|
||||
(for [shape shapes]
|
||||
|
|
Loading…
Add table
Reference in a new issue