From baf01446d98ecce3e26c2f60ad10091d542c472d Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Fri, 24 Apr 2026 14:46:10 +0200 Subject: [PATCH] :lipstick: Fix nitrate org arrow style --- frontend/src/app/main/ui/dashboard/sidebar.cljs | 8 +++++--- frontend/src/app/main/ui/dashboard/sidebar.scss | 4 ++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/dashboard/sidebar.cljs b/frontend/src/app/main/ui/dashboard/sidebar.cljs index 9663111d98..2cb4b31373 100644 --- a/frontend/src/app/main/ui/dashboard/sidebar.cljs +++ b/frontend/src/app/main/ui/dashboard/sidebar.cljs @@ -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) diff --git a/frontend/src/app/main/ui/dashboard/sidebar.scss b/frontend/src/app/main/ui/dashboard/sidebar.scss index 0140ce7ba8..395c882b86 100644 --- a/frontend/src/app/main/ui/dashboard/sidebar.scss +++ b/frontend/src/app/main/ui/dashboard/sidebar.scss @@ -654,6 +654,10 @@ width: 100%; } +.current-org-no-options { + gap: 0; +} + .current-org .arrow-icon { margin-inline-end: var(--sp-xs); }