diff --git a/components/sender/SenderHeader.tsx b/components/sender/SenderHeader.tsx index 74cf4706..3953b750 100644 --- a/components/sender/SenderHeader.tsx +++ b/components/sender/SenderHeader.tsx @@ -73,7 +73,7 @@ export default function SenderHeader(props: SenderHeaderProps) { }} > {/* Header */} - {closable !== false && ( + {(closable !== false || title) && (
{title}
-
-
+ {closable !== false && ( +
+
+ )}
)} diff --git a/components/sender/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/sender/__tests__/__snapshots__/demo-extend.test.ts.snap index 8b270738..f049d9ca 100644 --- a/components/sender/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/sender/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -392,6 +392,172 @@ exports[`renders components/sender/demo/header.tsx extend context correctly 1`] exports[`renders components/sender/demo/header.tsx extend context correctly 2`] = `[]`; +exports[`renders components/sender/demo/header-fixed.tsx extend context correctly 1`] = ` +
+
+ +
+
+
+
+
+
+ + + +
+
+ + "Tell more about Ant Design X" + +
+
+
+
+ +
+
+
+
+