💄 Minor cosmetic changes on dashboard main bar.

This commit is contained in:
Andrey Antukh 2020-03-26 15:15:42 +01:00
parent b5b2a374d8
commit 4da4bdd577
3 changed files with 8 additions and 12 deletions

View file

@ -12,7 +12,6 @@
height: 100%;
.dashboard-title {
margin: $medium 0;
position: relative;
width: 100%;

View file

@ -12,6 +12,7 @@
display: flex;
height: 40px;
padding: $x-small $small;
padding-left: $x-big;
position: relative;
z-index: 10;
@ -83,7 +84,6 @@
display: flex;
font-size: $fs15;
font-weight: normal;
margin: 0 $x-big;
}
.user-zone {

View file

@ -52,25 +52,22 @@
(st/emit! (dsh/delete-project project-id))
(st/emit! (rt/nav :dashboard-team {:team-id team-id})))
on-delete #(modal/show! confirm-dialog {:on-accept delete-fn})]
[:header#main-bar.main-bar
[:header.main-bar
(if (:is-default project)
[:h1.dashboard-title (t locale "dashboard.header.draft")]
[:*
[:div.main-bar-icon {:on-click on-menu-click} i/actions]
[:& context-menu {:on-close on-menu-close
:show (:menu-open @local)
:options [[(t locale "dashboard.grid.edit") on-edit]
[(t locale "dashboard.grid.delete") on-delete]]}]
(if (:edition @local)
[:input.element-name {:type "text"
:auto-focus true
:on-key-down on-key-down
:on-blur on-blur
:default-value (:name project)}]
[:h1.dashboard-title
[:div.main-bar-icon
{:on-click on-menu-click}
i/actions]
[:& context-menu {:on-close on-menu-close
:show (:menu-open @local)
:options [[(t locale "dashboard.grid.edit") on-edit]
[(t locale "dashboard.grid.delete") on-delete]]}]
(t locale "dashboard.header.project" (:name project))])])
[:h1.dashboard-title (t locale "dashboard.header.project" (:name project))])])
[:a.btn-dashboard {:on-click #(do
(dom/prevent-default %)
(st/emit! (dsh/create-file project-id)))}