mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 23:56:11 +02:00
💄 Minor cosmetic changes on dashboard main bar.
This commit is contained in:
parent
b5b2a374d8
commit
4da4bdd577
3 changed files with 8 additions and 12 deletions
|
@ -12,7 +12,6 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.dashboard-title {
|
.dashboard-title {
|
||||||
margin: $medium 0;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: $x-small $small;
|
padding: $x-small $small;
|
||||||
|
padding-left: $x-big;
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|
||||||
|
@ -83,7 +84,6 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
font-size: $fs15;
|
font-size: $fs15;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin: 0 $x-big;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-zone {
|
.user-zone {
|
||||||
|
|
|
@ -52,25 +52,22 @@
|
||||||
(st/emit! (dsh/delete-project project-id))
|
(st/emit! (dsh/delete-project project-id))
|
||||||
(st/emit! (rt/nav :dashboard-team {:team-id team-id})))
|
(st/emit! (rt/nav :dashboard-team {:team-id team-id})))
|
||||||
on-delete #(modal/show! confirm-dialog {:on-accept delete-fn})]
|
on-delete #(modal/show! confirm-dialog {:on-accept delete-fn})]
|
||||||
[:header#main-bar.main-bar
|
[:header.main-bar
|
||||||
(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]
|
||||||
|
[:& 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)
|
(if (:edition @local)
|
||||||
[:input.element-name {:type "text"
|
[:input.element-name {:type "text"
|
||||||
: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
|
[:h1.dashboard-title (t locale "dashboard.header.project" (:name project))])])
|
||||||
[: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))])])
|
|
||||||
[: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)))}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue