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))
|
||||
|
||||
show-options? (and (not default-org?)
|
||||
(not= (:id profile) (:owner-id current-org)))
|
||||
|
||||
show-orgs-menu*
|
||||
(mf/use-state false)
|
||||
|
||||
@ -765,7 +768,7 @@
|
||||
(if show-dropdown?
|
||||
[:div {:class (stl/css :sidebar-org-switch)}
|
||||
[: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-key-down on-show-orgs-keydown
|
||||
:aria-expanded show-orgs-menu?
|
||||
@ -782,8 +785,7 @@
|
||||
[:span {:class (stl/css :team-text)}
|
||||
(:name current-org)]])]
|
||||
arrow-icon]
|
||||
(when-not (or default-org?
|
||||
(= (:id profile) (:owner-id current-org)))
|
||||
(when show-options?
|
||||
[:> button* {:variant "ghost"
|
||||
:type "button"
|
||||
:class (stl/css :org-options-btn)
|
||||
|
||||
@ -654,6 +654,10 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.current-org-no-options {
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.current-org .arrow-icon {
|
||||
margin-inline-end: var(--sp-xs);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user