From 661933eed016873bb4b9a168a65c148f761c357e Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Mon, 13 Jul 2020 14:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20UI:=20fix=20disable-margin=20mar?= =?UTF-8?q?gin=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.zh-CN.md | 2 +- src/BasicLayout.less | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/changelog.zh-CN.md b/changelog.zh-CN.md index 9edcf803..f91cfa88 100644 --- a/changelog.zh-CN.md +++ b/changelog.zh-CN.md @@ -152,7 +152,7 @@ ### 4.8.1 -- 🌟 增加 g`disableContentMargin` 属性,用于关闭内容区的 margin。[1456cce1](https://github.com/ant-design/ant-design-pro-layout/commit/1456cce1) +- 🌟 增加 `disableContentMargin` 属性,用于关闭内容区的 margin。[1456cce1](https://github.com/ant-design/ant-design-pro-layout/commit/1456cce1) ### 4.8.0 diff --git a/src/BasicLayout.less b/src/BasicLayout.less index 91ad47cd..dceeccca 100644 --- a/src/BasicLayout.less +++ b/src/BasicLayout.less @@ -27,7 +27,8 @@ &-disable-margin { margin: 0; - > div > .@{ant-prefix}-pro-page-container { + + .@{ant-prefix}-pro-page-container { margin: 0; } }