From 30c85a53b8b4322da10596e658ffe8fbae79e227 Mon Sep 17 00:00:00 2001 From: LuckyFBB <976060700@qq.com> Date: Tue, 27 May 2025 16:28:44 +0800 Subject: [PATCH] fix(blockheader): fix spaceBottom when expand #490 --- src/blockHeader/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/blockHeader/index.tsx b/src/blockHeader/index.tsx index 5a54a8c7e..366fb1a13 100644 --- a/src/blockHeader/index.tsx +++ b/src/blockHeader/index.tsx @@ -86,7 +86,9 @@ const BlockHeader: React.FC = function (props) { const tooltipProps = toTooltipProps(tooltip); let bottomStyle; - if (spaceBottom) bottomStyle = { marginBottom: spaceBottom }; + if (spaceBottom) + bottomStyle = + showCollapse && currentExpand ? { marginBottom: 0 } : { marginBottom: spaceBottom }; const handleExpand = (expand: boolean) => { if (!children) return;