Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
πŸ’„ UI: fix side fixed style error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jul 6, 2020
1 parent 9bd34f8 commit 44a3597
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/demo/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default () => {
<ProLayout
{...defaultProps}
style={{
height: 500,
maxHeight: '100vh',
}}
location={{
Expand Down
3 changes: 2 additions & 1 deletion src/BasicLayout.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
&-content {
position: relative;
margin: 24px;
transition: all 0.2s;

.@{ant-prefix}-pro-page-container {
margin: -24px -24px 0;
}

&-disable-margin {
margin: 0;
> div > .@{ant-prefix}-pro-page-container {
Expand Down
1 change: 0 additions & 1 deletion src/GridContent/GridContent.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
.@{pro-layout-grid-content-prefix-cls} {
width: 100%;
min-height: 100%;
transition: 0.3s;
&.wide {
max-width: 1200px;
margin: 0 auto;
Expand Down
3 changes: 3 additions & 0 deletions src/SiderMenu/SiderMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ const SiderMenu: React.FC<SiderMenuProps> = (props) => {
style={{
width: collapsed ? 48 : siderWidth,
overflow: 'hidden',
flex: `0 0 ${collapsed ? 48 : siderWidth}px`,
maxWidth: collapsed ? 48 : siderWidth,
minWidth: collapsed ? 48 : siderWidth,
...style,
}}
/>
Expand Down

0 comments on commit 44a3597

Please sign in to comment.