diff --git a/packages/amis-editor-core/scss/editor.scss b/packages/amis-editor-core/scss/editor.scss index 4ef5e48ed..53393ccfa 100644 --- a/packages/amis-editor-core/scss/editor.scss +++ b/packages/amis-editor-core/scss/editor.scss @@ -158,11 +158,20 @@ position: relative; height: 100%; width: 100%; - padding: 24px 16px 16px; + padding: 0 16px 16px; min-width: 300px; background-color: $default-bg-color; overflow: auto; + // 因为如果成员里面有 position:sticky 的内容 + // 用 padding 会导致位置不正确 + // 所以改成这种写法 + &:before { + content: ''; + display: block; + height: 24px; + } + @include minScrollBar(); &::-webkit-scrollbar {