mirror of
https://github.com/penpot/penpot.git
synced 2026-03-21 01:43:43 +00:00
🐛 Fix order on color palette
This commit is contained in:
committed by
Andrés Moya
parent
2a67008531
commit
5730769a19
@@ -32,7 +32,7 @@
|
||||
- Fix problem with fonts that ends with numbers [#940](https://github.com/penpot/penpot/issues/940).
|
||||
- Fix problem with imported SVG on editing paths [#971](https://github.com/penpot/penpot/issues/971)
|
||||
- Fix problem with color picker positioning
|
||||
|
||||
- Fix order on color palette [#961](https://github.com/penpot/penpot/issues/961)
|
||||
|
||||
### :arrow_up: Deps updates
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
(into []
|
||||
(cond
|
||||
(= selected :recent) (reverse recent-colors)
|
||||
(= selected :file) (vals file-colors)
|
||||
(= selected :file) (->> (vals file-colors) (sort-by :name))
|
||||
:else (library->colors shared-libs selected))))))
|
||||
|
||||
(mf/use-effect
|
||||
@@ -222,7 +222,8 @@
|
||||
(mf/deps file-colors)
|
||||
(fn []
|
||||
(when (= selected :file)
|
||||
(reset! current-library-colors (into [] (vals file-colors))))))
|
||||
(reset! current-library-colors (into [] (->> (vals file-colors)
|
||||
(sort-by :name)))))))
|
||||
|
||||
[:& palette {:left-sidebar? left-sidebar?
|
||||
:current-colors @current-library-colors
|
||||
|
||||
Reference in New Issue
Block a user