π OpenHands: AI-Driven Development
Fix for overflow (#7470)
tofarre639283ac90f
diff --git a/frontend/src/components/features/conversation-panel/conversation-card-context-menu.tsx b/frontend/src/components/features/conversation-panel/conversation-card-context-menu.tsxindex dd401527aa..743d745716 100644--- a/frontend/src/components/features/conversation-panel/conversation-card-context-menu.tsx+++ b/frontend/src/components/features/conversation-panel/conversation-card-context-menu.tsx@@ -27,7 +27,7 @@ export function ConversationCardContextMenu({ref={ref}testId="context-menu"className={cn(- "right-0 absolute",+ "right-0 absolute mt-3",position === "top" && "bottom-full",position === "bottom" && "top-full",)}diff --git a/frontend/src/components/features/conversation-panel/conversation-card.tsx b/frontend/src/components/features/conversation-panel/conversation-card.tsxindex 00fd0d765f..1c3911078b 100644--- a/frontend/src/components/features/conversation-panel/conversation-card.tsx+++ b/frontend/src/components/features/conversation-panel/conversation-card.tsx@@ -179,31 +179,35 @@ export function ConversationCard({)}</div>- <div className="flex items-center gap-2 relative">+ <div className="flex items-center"><ConversationStateIndicator status={status} />{hasContextMenu && (- <EllipsisButton- onClick={(event) => {- event.preventDefault();- event.stopPropagation();- setContextMenuVisible((prev) => !prev);- }}- />- )}- {contextMenuVisible && (- <ConversationCardContextMenu- onClose={() => setContextMenuVisible(false)}- onDelete={onDelete && handleDelete}- onEdit={onChangeTitle && handleEdit}- onDownloadViaVSCode={- conversationId ? handleDownloadViaVSCode : undefined- }- onDisplayCost={- showDisplayCostOption ? handleDisplayCost : undefined- }- position={variant === "compact" ? "top" : "bottom"}- />+ <div className="pl-2">+ <EllipsisButton+ onClick={(event) => {+ event.preventDefault();+ event.stopPropagation();+ setContextMenuVisible((prev) => !prev);+ }}+ />+ </div>)}+ <div className="relative">+ {contextMenuVisible && (+ <ConversationCardContextMenu+ onClose={() => setContextMenuVisible(false)}+ onDelete={onDelete && handleDelete}+ onEdit={onChangeTitle && handleEdit}+ onDownloadViaVSCode={+ conversationId ? handleDownloadViaVSCode : undefined+ }+ onDisplayCost={+ showDisplayCostOption ? handleDisplayCost : undefined+ }+ position={variant === "compact" ? "top" : "bottom"}+ />+ )}+ </div></div></div>