mirror of
https://github.com/penpot/penpot.git
synced 2025-02-14 02:58:39 -05:00
🐛 Fix order on color palette
This commit is contained in:
parent
2a67008531
commit
5730769a19
2 changed files with 4 additions and 3 deletions
|
@ -32,7 +32,7 @@
|
||||||
- Fix problem with fonts that ends with numbers [#940](https://github.com/penpot/penpot/issues/940).
|
- 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 imported SVG on editing paths [#971](https://github.com/penpot/penpot/issues/971)
|
||||||
- Fix problem with color picker positioning
|
- Fix problem with color picker positioning
|
||||||
|
- Fix order on color palette [#961](https://github.com/penpot/penpot/issues/961)
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
|
|
||||||
|
|
|
@ -209,7 +209,7 @@
|
||||||
(into []
|
(into []
|
||||||
(cond
|
(cond
|
||||||
(= selected :recent) (reverse recent-colors)
|
(= selected :recent) (reverse recent-colors)
|
||||||
(= selected :file) (vals file-colors)
|
(= selected :file) (->> (vals file-colors) (sort-by :name))
|
||||||
:else (library->colors shared-libs selected))))))
|
:else (library->colors shared-libs selected))))))
|
||||||
|
|
||||||
(mf/use-effect
|
(mf/use-effect
|
||||||
|
@ -222,7 +222,8 @@
|
||||||
(mf/deps file-colors)
|
(mf/deps file-colors)
|
||||||
(fn []
|
(fn []
|
||||||
(when (= selected :file)
|
(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?
|
[:& palette {:left-sidebar? left-sidebar?
|
||||||
:current-colors @current-library-colors
|
:current-colors @current-library-colors
|
||||||
|
|
Loading…
Add table
Reference in a new issue