mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 13:36:14 +02:00
🎉 Improve dashboard and onboarding css
This commit is contained in:
parent
390ad34b13
commit
e863ef7dbf
11 changed files with 149 additions and 35 deletions
|
@ -209,7 +209,7 @@
|
|||
:dashboard-local dashboard-local}])]]]))
|
||||
|
||||
(mf/defc grid
|
||||
[{:keys [files project on-create-clicked origin] :as props}]
|
||||
[{:keys [files project on-create-clicked origin limit] :as props}]
|
||||
(let [dragging? (mf/use-state false)
|
||||
project-id (:id project)
|
||||
|
||||
|
@ -263,6 +263,7 @@
|
|||
|
||||
(seq files)
|
||||
[:div.grid-row
|
||||
{:style {:grid-template-columns (str "repeat(" limit ", 1fr)")}}
|
||||
(when @dragging?
|
||||
[:div.grid-item])
|
||||
(for [item files]
|
||||
|
@ -275,7 +276,8 @@
|
|||
:else
|
||||
[:& empty-placeholder {:default? (:is-default project)
|
||||
:on-create-clicked on-create-clicked
|
||||
:project project}])]))
|
||||
:project project
|
||||
:limit limit}])]))
|
||||
|
||||
(mf/defc line-grid-row
|
||||
[{:keys [files selected-files dragging? limit] :as props}]
|
||||
|
@ -385,5 +387,6 @@
|
|||
:else
|
||||
[:& empty-placeholder {:dragging? @dragging?
|
||||
:default? (:is-default project)
|
||||
:on-create-clicked on-create-clicked}])]))
|
||||
:on-create-clicked on-create-clicked
|
||||
:limit limit}])]))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue