From 8d4a9df6b10b65bf6ac5c62811a4c5332731bbe2 Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Sun, 28 Sep 2025 14:15:33 +0800 Subject: [PATCH] fix: more button dropdown menu visibility and auto-close behavior --- web/app/components/app-sidebar/app-operations.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/app/components/app-sidebar/app-operations.tsx b/web/app/components/app-sidebar/app-operations.tsx index bbd580b065..07b982502d 100644 --- a/web/app/components/app-sidebar/app-operations.tsx +++ b/web/app/components/app-sidebar/app-operations.tsx @@ -42,7 +42,10 @@ const AppOperations = ({ primaryOperations, secondaryOperations, gap }: { 'flex h-8 cursor-pointer items-center gap-x-1 rounded-lg p-1.5 hover:bg-state-base-hover', operation.className, )} - onClick={operation.onClick} + onClick={() => { + setShowMore(false) + operation.onClick() + }} > {cloneElement(operation.icon, { className: 'h-4 w-4 text-text-tertiary', @@ -91,7 +94,7 @@ const AppOperations = ({ primaryOperations, secondaryOperations, gap }: { {t('common.operation.more')} - +
{secondaryOperations.map((operation, index) => renderSecondaryOperation(operation, index))}