Skip to content

Commit 8703e7e

Browse files
authored
site: remove unused bottom from sticky layout (ant-design#56215)
1 parent 3becb84 commit 8703e7e

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ exports[`renders components/layout/demo/fixed-sider.tsx extend context correctly
14011401
>
14021402
<aside
14031403
class="ant-layout-sider ant-layout-sider-dark css-var-test-id"
1404-
style="overflow: auto; height: 100vh; position: sticky; inset-inline-start: 0; top: 0px; bottom: 0px; scrollbar-width: thin; scrollbar-gutter: stable; flex: 0 0 200px; max-width: 200px; min-width: 200px; width: 200px;"
1404+
style="overflow: auto; height: 100vh; position: sticky; inset-inline-start: 0; top: 0px; scrollbar-width: thin; scrollbar-gutter: stable; flex: 0 0 200px; max-width: 200px; min-width: 200px; width: 200px;"
14051405
>
14061406
<div
14071407
class="ant-layout-sider-children"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ exports[`renders components/layout/demo/fixed-sider.tsx correctly 1`] = `
772772
>
773773
<aside
774774
class="ant-layout-sider ant-layout-sider-dark css-var-test-id"
775-
style="overflow:auto;height:100vh;position:sticky;inset-inline-start:0;top:0;bottom:0;scrollbar-width:thin;scrollbar-gutter:stable;flex:0 0 200px;max-width:200px;min-width:200px;width:200px"
775+
style="overflow:auto;height:100vh;position:sticky;inset-inline-start:0;top:0;scrollbar-width:thin;scrollbar-gutter:stable;flex:0 0 200px;max-width:200px;min-width:200px;width:200px"
776776
>
777777
<div
778778
class="ant-layout-sider-children"

components/layout/demo/fixed-sider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const siderStyle: React.CSSProperties = {
2020
position: 'sticky',
2121
insetInlineStart: 0,
2222
top: 0,
23-
bottom: 0,
2423
scrollbarWidth: 'thin',
2524
scrollbarGutter: 'stable',
2625
};

0 commit comments

Comments
 (0)