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;