mirror of
https://github.com/penpot/penpot.git
synced 2025-01-22 14:39:45 -05:00
🐛 Fix color palette animation
This commit is contained in:
parent
07e8d110a2
commit
ddae26b48b
5 changed files with 12 additions and 7 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
### :bug: Bugs fixed
|
||||
|
||||
- Fix color palette animation [Taiga #2852](https://tree.taiga.io/project/penpot/issue/2852)
|
||||
- Fix display code icon on preview hover [Taiga #2838](https://tree.taiga.io/project/penpot/us/2838)
|
||||
|
||||
### :arrow_up: Deps updates
|
||||
|
|
|
@ -1494,6 +1494,7 @@
|
|||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
max-height: 0px;
|
||||
}
|
||||
|
||||
100% {
|
||||
|
@ -1587,6 +1588,7 @@
|
|||
opacity: 0;
|
||||
-webkit-transform: translate3d(0, 100%, 0);
|
||||
transform: translate3d(0, 100%, 0);
|
||||
max-height: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// Copyright (c) UXBOX Labs SL
|
||||
|
||||
.color-palette {
|
||||
@include animation(0, 0.5s, fadeInUp);
|
||||
@include animation(0, 0.3s, fadeInUp);
|
||||
align-items: center;
|
||||
background-color: $color-gray-50;
|
||||
border-top: 1px solid $color-gray-60;
|
||||
|
@ -42,7 +42,7 @@
|
|||
}
|
||||
|
||||
&.fade-out-down {
|
||||
@include animation(0, 0.5s, fadeOutDown);
|
||||
@include animation(0, 0.3s, fadeOutDown);
|
||||
}
|
||||
|
||||
& .context-menu-items {
|
||||
|
|
|
@ -63,7 +63,6 @@ $height-palette-max: 80px;
|
|||
|
||||
.color-palette {
|
||||
grid-area: color-palette;
|
||||
min-height: $height-palette-min;
|
||||
max-height: $height-palette-max;
|
||||
height: var(--height, $height-palette);
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
[app.util.dom :as dom]
|
||||
[app.util.i18n :as i18n :refer [tr]]
|
||||
[app.util.object :as obj]
|
||||
[app.util.timers :as ts]
|
||||
[rumext.alpha :as mf]))
|
||||
|
||||
(mf/defc image-upload
|
||||
|
@ -124,8 +125,9 @@
|
|||
:class (when (contains? layout :textpalette) "selected")
|
||||
:on-click (fn []
|
||||
(r/set-resize-type! :bottom)
|
||||
(st/emit! (dw/remove-layout-flags :colorpalette)
|
||||
(dw/toggle-layout-flags :textpalette)))}
|
||||
(dom/add-class! (dom/get-element-by-class "color-palette") "fade-out-down")
|
||||
(ts/schedule 300 #(st/emit! (dw/remove-layout-flags :colorpalette)
|
||||
(dw/toggle-layout-flags :textpalette))))}
|
||||
"Ag"]
|
||||
|
||||
[:li.tooltip.tooltip-right
|
||||
|
@ -133,6 +135,7 @@
|
|||
:class (when (contains? layout :colorpalette) "selected")
|
||||
:on-click (fn []
|
||||
(r/set-resize-type! :bottom)
|
||||
(st/emit! (dw/remove-layout-flags :textpalette)
|
||||
(dw/toggle-layout-flags :colorpalette)))}
|
||||
(dom/add-class! (dom/get-element-by-class "color-palette") "fade-out-down")
|
||||
(ts/schedule 300 #(st/emit! (dw/remove-layout-flags :textpalette)
|
||||
(dw/toggle-layout-flags :colorpalette))))}
|
||||
i/palette]]]]))
|
||||
|
|
Loading…
Add table
Reference in a new issue