mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 18:41:38 +02:00
Fix minor dashboard bugs
This commit is contained in:
parent
54b7d04639
commit
9951ec691e
3 changed files with 20 additions and 5 deletions
|
@ -82,6 +82,7 @@
|
||||||
|
|
||||||
.grid-item {
|
.grid-item {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
border: 1px solid lighten($color-gray-20, 13%);
|
||||||
border-radius: $br-small;
|
border-radius: $br-small;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -451,6 +452,7 @@
|
||||||
border: 1px dashed $color-gray-20;
|
border: 1px dashed $color-gray-20;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
height: fit-content;
|
||||||
margin: $size-4;
|
margin: $size-4;
|
||||||
padding: 3rem;
|
padding: 3rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -86,6 +86,20 @@
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-bar-icon {
|
||||||
|
cursor: pointer;
|
||||||
|
margin-left: $small;
|
||||||
|
|
||||||
|
svg {
|
||||||
|
fill: $color-gray-40;
|
||||||
|
width: 10px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
fill: $color-primary-dark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.user-zone {
|
.user-zone {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-right: 1px solid $color-gray-10;
|
border-right: 1px solid $color-gray-10;
|
||||||
|
|
|
@ -54,7 +54,8 @@
|
||||||
(if (:is-default project)
|
(if (:is-default project)
|
||||||
[:h1.dashboard-title (t locale "dashboard.header.draft")]
|
[:h1.dashboard-title (t locale "dashboard.header.draft")]
|
||||||
[:*
|
[:*
|
||||||
[:div.main-bar-icon {:on-click on-menu-click} i/actions]
|
[:h1.dashboard-title (t locale "dashboard.header.project" (:name project))]
|
||||||
|
[:div.main-bar-icon {:on-click on-menu-click} i/arrow-down]
|
||||||
[:& context-menu {:on-close on-menu-close
|
[:& context-menu {:on-close on-menu-close
|
||||||
:show (:menu-open @local)
|
:show (:menu-open @local)
|
||||||
:options [[(t locale "dashboard.grid.edit") on-edit]
|
:options [[(t locale "dashboard.grid.edit") on-edit]
|
||||||
|
@ -64,8 +65,7 @@
|
||||||
:auto-focus true
|
:auto-focus true
|
||||||
:on-key-down on-key-down
|
:on-key-down on-key-down
|
||||||
:on-blur on-blur
|
:on-blur on-blur
|
||||||
:default-value (:name project)}]
|
:default-value (:name project)}])])
|
||||||
[:h1.dashboard-title (t locale "dashboard.header.project" (:name project))])])
|
|
||||||
[:a.btn-dashboard {:on-click #(do
|
[:a.btn-dashboard {:on-click #(do
|
||||||
(dom/prevent-default %)
|
(dom/prevent-default %)
|
||||||
(st/emit! (dsh/create-file project-id)))}
|
(st/emit! (dsh/create-file project-id)))}
|
||||||
|
@ -84,4 +84,3 @@
|
||||||
[:& project-header {:team-id team-id :project-id project-id}]
|
[:& project-header {:team-id team-id :project-id project-id}]
|
||||||
[:section.projects-page
|
[:section.projects-page
|
||||||
[:& grid { :id project-id :files files :hide-new? true}]]]))
|
[:& grid { :id project-id :files files :hide-new? true}]]]))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue