Skip to content

Commit f608f61

Browse files
authored
fix(blockheader): fix spaceBottom when expand (#567)
#490
1 parent c74dffd commit f608f61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/blockHeader/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ const BlockHeader: React.FC<IBlockHeaderProps> = function (props) {
8686
const tooltipProps = toTooltipProps(tooltip);
8787

8888
let bottomStyle;
89-
if (spaceBottom) bottomStyle = { marginBottom: spaceBottom };
89+
if (spaceBottom)
90+
bottomStyle =
91+
showCollapse && currentExpand ? { marginBottom: 0 } : { marginBottom: spaceBottom };
9092

9193
const handleExpand = (expand: boolean) => {
9294
if (!children) return;

0 commit comments

Comments
 (0)