Skip to content

Commit dc9e457

Browse files
authored
demo: Update demo with Space.Compact wrap (ant-design#48067)
* demo: App demo update * test: Update test snapshots
1 parent 0177a70 commit dc9e457

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

components/app/__tests__/__snapshots__/demo-extend.test.ts.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ exports[`renders components/app/demo/basic.tsx extend context correctly 1`] = `
66
>
77
<div
88
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
9+
style="flex-wrap: wrap;"
910
>
1011
<div
1112
class="ant-space-item"
@@ -55,6 +56,7 @@ exports[`renders components/app/demo/config.tsx extend context correctly 1`] = `
5556
>
5657
<div
5758
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
59+
style="flex-wrap: wrap;"
5860
>
5961
<div
6062
class="ant-space-item"

components/app/__tests__/__snapshots__/demo.test.ts.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ exports[`renders components/app/demo/basic.tsx correctly 1`] = `
66
>
77
<div
88
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
9+
style="flex-wrap:wrap"
910
>
1011
<div
1112
class="ant-space-item"
@@ -53,6 +54,7 @@ exports[`renders components/app/demo/config.tsx correctly 1`] = `
5354
>
5455
<div
5556
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
57+
style="flex-wrap:wrap"
5658
>
5759
<div
5860
class="ant-space-item"

components/app/demo/basic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const MyPage = () => {
2525
};
2626

2727
return (
28-
<Space>
28+
<Space wrap>
2929
<Button type="primary" onClick={showMessage}>
3030
Open message
3131
</Button>

components/app/demo/config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const MyPage = () => {
1717
};
1818

1919
return (
20-
<Space>
20+
<Space wrap>
2121
<Button type="primary" onClick={showMessage}>
2222
Message for only one
2323
</Button>

0 commit comments

Comments
 (0)