mirror of
https://github.com/penpot/penpot.git
synced 2025-05-22 20:56:12 +02:00
🐛 Fix order on color palette
This commit is contained in:
parent
2a67008531
commit
5730769a19
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue