0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

Merge pull request #2435 from penpot/eva-fix-loading-placeholder

🐛 Fix loading placeholder
This commit is contained in:
Alejandro 2022-10-11 15:59:17 +02:00 committed by GitHub
commit 8b1e8408f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 4 deletions

View file

@ -420,6 +420,14 @@
background-color: rgba(227, 227, 227, 0.3);
padding: 13px;
margin-right: 13px;
&.loader {
justify-items: center;
}
.icon {
display: flex;
align-items: center;
justify-content: center;
}
&.libs {
background-image: url(/images/ph-left.svg), url(/images/ph-right.svg);
background-position: 15% bottom, 85% top;

View file

@ -24,10 +24,11 @@
(let [files-map (mf/deref refs/dashboard-shared-files)
projects (mf/deref refs/dashboard-projects)
default-project (->> projects vals (d/seek :is-default))
files (->> (vals files-map)
files (if (nil? files-map)
nil
(->> (vals files-map)
(sort-by :modified-at)
(reverse)
(not-empty))
(reverse)))
components-v2 (features/use-feature :components-v2)

View file

@ -35,7 +35,7 @@
(mf/defc loading-placeholder
[]
[:div.grid-empty-placeholder
[:div.grid-empty-placeholder.loader
[:div.icon i/loader]
[:div.text (tr "dashboard.loading-files")]])