0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-13 07:21:40 -05:00

Fix minor dashboard bugs

This commit is contained in:
Juan de la Cruz 2020-05-05 20:42:53 +02:00
parent 54b7d04639
commit 9951ec691e
3 changed files with 20 additions and 5 deletions

View file

@ -82,6 +82,7 @@
.grid-item {
align-items: center;
border: 1px solid lighten($color-gray-20, 13%);
border-radius: $br-small;
cursor: pointer;
display: flex;
@ -451,6 +452,7 @@
border: 1px dashed $color-gray-20;
display: flex;
flex-direction: column;
height: fit-content;
margin: $size-4;
padding: 3rem;
width: 100%;

View file

@ -86,6 +86,20 @@
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 {
align-items: center;
border-right: 1px solid $color-gray-10;

View file

@ -54,7 +54,8 @@
(if (:is-default project)
[: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
:show (:menu-open @local)
:options [[(t locale "dashboard.grid.edit") on-edit]
@ -64,8 +65,7 @@
:auto-focus true
:on-key-down on-key-down
:on-blur on-blur
:default-value (:name project)}]
[:h1.dashboard-title (t locale "dashboard.header.project" (:name project))])])
:default-value (:name project)}])])
[:a.btn-dashboard {:on-click #(do
(dom/prevent-default %)
(st/emit! (dsh/create-file project-id)))}
@ -83,5 +83,4 @@
[:*
[:& project-header {:team-id team-id :project-id project-id}]
[:section.projects-page
[:& grid { :id project-id :files files :hide-new? true}]]]))
[:& grid { :id project-id :files files :hide-new? true}]]]))