Skip to content

Commit

Permalink
test: improve layout demo (#33653)
Browse files Browse the repository at this point in the history
* test: improve layout demo

* test: improve layout demo

* update snapshot
  • Loading branch information
afc163 committed Jan 12, 2022
1 parent 10c3ec6 commit 7a3f7ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ exports[`renders ./components/layout/demo/fixed-sider.md extend context correctl
>
<aside
class="ant-layout-sider ant-layout-sider-dark"
style="overflow:auto;height:100vh;position:fixed;left:0;flex:0 0 200px;max-width:200px;min-width:200px;width:200px"
style="overflow:auto;height:100vh;position:fixed;left:0;top:0;bottom:0;flex:0 0 200px;max-width:200px;min-width:200px;width:200px"
>
<div
class="ant-layout-sider-children"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ exports[`renders ./components/layout/demo/fixed-sider.md correctly 1`] = `
>
<aside
class="ant-layout-sider ant-layout-sider-dark"
style="overflow:auto;height:100vh;position:fixed;left:0;flex:0 0 200px;max-width:200px;min-width:200px;width:200px"
style="overflow:auto;height:100vh;position:fixed;left:0;top:0;bottom:0;flex:0 0 200px;max-width:200px;min-width:200px;width:200px"
>
<div
class="ant-layout-sider-children"
Expand Down
2 changes: 2 additions & 0 deletions components/layout/demo/fixed-sider.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ ReactDOM.render(
height: '100vh',
position: 'fixed',
left: 0,
top: 0,
bottom: 0,
}}
>
<div className="logo" />
Expand Down

0 comments on commit 7a3f7ba

Please sign in to comment.