This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 74c1b82319c Show collapsible plugin menu when plugins more than or 
equal 2 (#55265)
74c1b82319c is described below

commit 74c1b82319c3775d699ca7b054805eec6590b11d
Author: Vic Wen <99777196+viicc...@users.noreply.github.com>
AuthorDate: Tue Sep 9 03:42:43 2025 +0800

    Show collapsible plugin menu when plugins more than or equal 2 (#55265)
    
    * fix(ui): add vertical scroll to sidebar to prevent plugin cutoff
    
    * feat: show plugin munu when there are at least 2 items
---
 airflow-core/src/airflow/ui/src/layouts/Nav/PluginMenus.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow-core/src/airflow/ui/src/layouts/Nav/PluginMenus.tsx 
b/airflow-core/src/airflow/ui/src/layouts/Nav/PluginMenus.tsx
index bb0ddfc506c..2dfbf58ac3d 100644
--- a/airflow-core/src/airflow/ui/src/layouts/Nav/PluginMenus.tsx
+++ b/airflow-core/src/airflow/ui/src/layouts/Nav/PluginMenus.tsx
@@ -49,8 +49,8 @@ export const PluginMenus = ({ navItems }: { readonly 
navItems: Array<NavItemResp
     return undefined;
   }
 
-  // Show plugins in menu if there are more than 2
-  return navItems.length > 2 ? (
+  // Show plugins in menu if there are more than or equal to 2
+  return navItems.length >= 2 ? (
     <Menu.Root positioning={{ placement: "right" }}>
       <Menu.Trigger>
         <NavButton as={Box} icon={<LuPlug />} title={translate("nav.plugins")} 
/>

Reply via email to