diff --git a/components/layout/style/sider.ts b/components/layout/style/sider.ts index 10790a5f9a..c27a083ce9 100644 --- a/components/layout/style/sider.ts +++ b/components/layout/style/sider.ts @@ -69,7 +69,7 @@ const genSiderStyle: GenerateStyle = (token) => { transition: `all ${motionDurationMid}`, }, - '&-zero-width': { + [`${antCls}-layout &-zero-width`]: { '> *': { overflow: 'hidden', },