diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsx index 8946cf6f8..19171f87f 100644 --- a/apps/web/src/components/editor/action-bar.tsx +++ b/apps/web/src/components/editor/action-bar.tsx @@ -269,12 +269,18 @@ const TabStrip = React.memo(function TabStrip() { onDoubleClick={(e) => e.stopPropagation()} > ); } diff --git a/apps/web/src/components/navigation-menu/navigation-item.tsx b/apps/web/src/components/navigation-menu/navigation-item.tsx index d4353e938..c18666acc 100644 --- a/apps/web/src/components/navigation-menu/navigation-item.tsx +++ b/apps/web/src/components/navigation-menu/navigation-item.tsx @@ -90,20 +90,19 @@ function NavigationItem( }} data-test-id={`navigation-item`} title={title} + onContextMenu={(e) => { + if (!menuItems) return; + e.preventDefault(); + e.stopPropagation(); + Menu.openMenu(menuItems); + }} > - + {children && !isCollapsed ? children : null} ); diff --git a/apps/web/src/components/navigation-menu/tab-item.tsx b/apps/web/src/components/navigation-menu/tab-item.tsx index e007bc64f..9ff501c85 100644 --- a/apps/web/src/components/navigation-menu/tab-item.tsx +++ b/apps/web/src/components/navigation-menu/tab-item.tsx @@ -53,32 +53,20 @@ export function TabItem(props: TabItemProps & FlexProps) { } ), borderRadius: "default", - p: 0, alignItems: "center", + justifyContent: "center", position: "relative", ":focus": { bg: selected ? "hover-selected" : "hover" }, + p: 1, ...sx }} + data-test-id={`tab-item`} + title={title} + onClick={() => { + if (onClick) onClick(); + }} > - + ); }