mirror of
https://github.com/penpot/penpot.git
synced 2025-05-20 09:16:11 +02:00
🐛 Fix local library being collapsed by default (#5775)
* 🐛 Fix local library being collapsed by default * ♻️ Move layers tab spec code to its own file
This commit is contained in:
parent
c774592b9e
commit
2cbc09a0e2
4 changed files with 90 additions and 75 deletions
frontend/src/app/main/ui/workspace/sidebar/assets
|
@ -320,7 +320,7 @@
|
|||
(tr "workspace.assets.not-found")]])]))
|
||||
|
||||
(mf/defc file-library*
|
||||
[{:keys [file is-local is-default-open? filters]}]
|
||||
[{:keys [file is-local is-default-open filters]}]
|
||||
(let [file-id (:id file)
|
||||
file-name (:name file)
|
||||
page-id (dm/get-in file [:data :pages 0])
|
||||
|
@ -376,7 +376,7 @@
|
|||
;; if the user has closed it specifically, respect that
|
||||
false
|
||||
(or force-lib-open?
|
||||
(d/nilv (:library open-status) is-default-open?)))
|
||||
(d/nilv (:library open-status) is-default-open)))
|
||||
|
||||
unselect-all
|
||||
(mf/use-fn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue