Browse Source

docs: optimize avatar demo (#22631)

pull/22582/head
xrkffgg 5 years ago
committed by GitHub
parent
commit
fd11de50ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/avatar/__tests__/__snapshots__/demo.test.js.snap
  2. 6
      components/avatar/demo/dynamic.md

2
components/avatar/__tests__/__snapshots__/demo.test.js.snap

@ -450,7 +450,7 @@ exports[`renders ./components/avatar/demo/dynamic.md correctly 1`] = `
</span>
<button
class="ant-btn ant-btn-sm"
style="margin-left:16px;vertical-align:middle"
style="margin:0 16px;vertical-align:middle"
type="button"
>
<span>

6
components/avatar/demo/dynamic.md

@ -33,7 +33,11 @@ const Autoset: React.FC = () => {
<Avatar style={{ backgroundColor: color, verticalAlign: 'middle' }} size="large">
{user}
</Avatar>
<Button size="small" style={{ marginLeft: 16, verticalAlign: 'middle' }} onClick={changeUser}>
<Button
size="small"
style={{ margin: '0 16px', verticalAlign: 'middle' }}
onClick={changeUser}
>
Change
</Button>
</div>

Loading…
Cancel
Save