Skip to content

Commit

Permalink
Merge branch 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangfuhao committed Mar 20, 2023
2 parents 9cf564d + 2fdfa8e commit 002ab00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modal/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ nav:

* `Modal` 最大高度 `100vh - 80px`
* 内容区域最大高度 = `Modal - @modal-header-height - @modal-footer-height` = `calc(100vh - 76px -80px - 80px)`
* 内容区域最小高度 = `240px - @modal-header-height` = `240px - 76px`;
* 内容区域最小高度 = `240px - @modal-header-height - @modal-footer-height` = `240px - 76px - 80px`;

<code src="./demos/max-height.tsx" />

Expand Down
2 changes: 1 addition & 1 deletion src/modal/modal.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@dialog-prefix-cls: ~'@{ant-prefix}-modal';
@modal-body-min-height: 240px - @modal-header-height;
@modal-body-min-height: 240px - @modal-header-height - @modal-footer-height;

.@{dialog-prefix-cls} {
.reset-component();
Expand Down

0 comments on commit 002ab00

Please sign in to comment.