mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
💄 Fix nitrate org arrow style
This commit is contained in:
parent
01d68ec09b
commit
baf01446d9
@ -716,6 +716,9 @@
|
|||||||
|
|
||||||
default-org? (nil? (:id current-org))
|
default-org? (nil? (:id current-org))
|
||||||
|
|
||||||
|
show-options? (and (not default-org?)
|
||||||
|
(not= (:id profile) (:owner-id current-org)))
|
||||||
|
|
||||||
show-orgs-menu*
|
show-orgs-menu*
|
||||||
(mf/use-state false)
|
(mf/use-state false)
|
||||||
|
|
||||||
@ -765,7 +768,7 @@
|
|||||||
(if show-dropdown?
|
(if show-dropdown?
|
||||||
[:div {:class (stl/css :sidebar-org-switch)}
|
[:div {:class (stl/css :sidebar-org-switch)}
|
||||||
[:div {:class (stl/css :org-switch-content)}
|
[:div {:class (stl/css :org-switch-content)}
|
||||||
[:button {:class (stl/css :current-org)
|
[:button {:class (stl/css-case :current-org true :current-org-no-options (not show-options?))
|
||||||
:on-click on-show-orgs-click
|
:on-click on-show-orgs-click
|
||||||
:on-key-down on-show-orgs-keydown
|
:on-key-down on-show-orgs-keydown
|
||||||
:aria-expanded show-orgs-menu?
|
:aria-expanded show-orgs-menu?
|
||||||
@ -782,8 +785,7 @@
|
|||||||
[:span {:class (stl/css :team-text)}
|
[:span {:class (stl/css :team-text)}
|
||||||
(:name current-org)]])]
|
(:name current-org)]])]
|
||||||
arrow-icon]
|
arrow-icon]
|
||||||
(when-not (or default-org?
|
(when show-options?
|
||||||
(= (:id profile) (:owner-id current-org)))
|
|
||||||
[:> button* {:variant "ghost"
|
[:> button* {:variant "ghost"
|
||||||
:type "button"
|
:type "button"
|
||||||
:class (stl/css :org-options-btn)
|
:class (stl/css :org-options-btn)
|
||||||
|
|||||||
@ -654,6 +654,10 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.current-org-no-options {
|
||||||
|
gap: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.current-org .arrow-icon {
|
.current-org .arrow-icon {
|
||||||
margin-inline-end: var(--sp-xs);
|
margin-inline-end: var(--sp-xs);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user