Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix text wrap on context menu (#7468)

tofarr1a3354404e60
diff --git a/frontend/src/components/features/context-menu/context-menu-list-item.tsx b/frontend/src/components/features/context-menu/context-menu-list-item.tsx
index b35ca44395..deb87e1240 100644
--- a/frontend/src/components/features/context-menu/context-menu-list-item.tsx
+++ b/frontend/src/components/features/context-menu/context-menu-list-item.tsx
@@ -20,7 +20,7 @@ export function ContextMenuListItem({
disabled={isDisabled}
className={cn(
"text-sm px-4 py-2 w-full text-start hover:bg-white/10 first-of-type:rounded-t-md last-of-type:rounded-b-md",
- "disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent",
+ "disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent text-nowrap",
)}
>
{children}
diff --git a/frontend/src/components/features/context-menu/context-menu.tsx b/frontend/src/components/features/context-menu/context-menu.tsx
index 5de1cd5ec9..38a5cc0312 100644
--- a/frontend/src/components/features/context-menu/context-menu.tsx
+++ b/frontend/src/components/features/context-menu/context-menu.tsx
@@ -18,7 +18,7 @@ export function ContextMenu({
<ul
data-testid={testId}
ref={ref}
- className={cn("bg-tertiary rounded-md w-[140px]", className)}
+ className={cn("bg-tertiary rounded-md", className)}
>
{children}
</ul>