0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

🐛 Fix rounded corners on canvas color

This commit is contained in:
alonso.torres 2023-11-14 16:45:25 +01:00
parent 78332257aa
commit 6c003a4f24
2 changed files with 12 additions and 12 deletions

View file

@ -68,6 +68,12 @@
editing-text* (mf/use-state false)
editing-text? (deref editing-text*)
opacity?
(and (not gradient-color?)
(not multiple-colors?)
(not library-color?)
(not disable-opacity))
on-focus
(mf/use-fn
(mf/deps on-focus)
@ -187,6 +193,7 @@
:ref dref}
[:span {:class (stl/css :color-info)}
[:span {:class (stl/css-case :color-name-wrapper true
:no-opacity (not opacity?)
:library-name-wrapper library-color?
:editing editing-text?
:gradient-name-wrapper gradient-color?)}
@ -238,10 +245,7 @@
:on-blur on-blur
:on-change handle-value-change}]])]
(when (and (not gradient-color?)
(not multiple-colors?)
(not library-color?))
(when opacity?
[:div {:class (stl/css :opacity-element-wrapper)}
[:span {:class (stl/css :icon-text)}
"%"]
@ -263,14 +267,7 @@
:on-click handle-select}
i/move-refactor])]
;; OLD CSS
[:div.row-flex.color-data {:title title
:class (dom/classnames
:dnd-over-top (= (:over dprops) :top)

View file

@ -24,6 +24,9 @@
border-radius: $br-8 0 0 $br-8;
padding: 0;
margin-right: 0;
&.no-opacity {
border-radius: $br-8;
}
.color-bullet-wrapper {
height: $s-28;
padding: 0 $s-2 0 $s-8;