From 1a57bc581e0bc133be2e36f311bef8f415caa46b Mon Sep 17 00:00:00 2001 From: liaoxuezhi <2betop.cn@gmail.com> Date: Tue, 8 Aug 2023 10:05:13 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=A7=A3=E5=86=B3=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=99=A8=E9=A2=84=E8=A7=88=20table=20?= =?UTF-8?q?=E7=9A=84=20sticky=20=E8=A1=A8=E5=A4=B4=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E4=BC=9A=E9=87=8D=E5=8F=A0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#7650)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor-core/scss/editor.scss | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 {