💄 Fix nitrate org arrow style

This commit is contained in:
Pablo Alba 2026-04-24 14:46:10 +02:00
parent 01d68ec09b
commit baf01446d9
2 changed files with 9 additions and 3 deletions

View File

@ -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)

View File

@ -654,6 +654,10 @@
width: 100%;
}
.current-org-no-options {
gap: 0;
}
.current-org .arrow-icon {
margin-inline-end: var(--sp-xs);
}