From b46924a2acbd38ac9a754d8684cf0743e69af24d Mon Sep 17 00:00:00 2001 From: 2betop <2698393+2betop@users.noreply.github.com> Date: Wed, 13 Nov 2024 11:45:33 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=B0=83=E6=95=B4=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=A0=B7=E5=BC=8F=E9=81=BF=E5=85=8D=E6=8C=A1?= =?UTF-8?q?=E4=BD=8F=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor-core/scss/editor.scss | 12 ++++++------ .../amis-editor-core/src/component/RegionHLBox.tsx | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/amis-editor-core/scss/editor.scss b/packages/amis-editor-core/scss/editor.scss index e3a332ec0..ac97f38ca 100644 --- a/packages/amis-editor-core/scss/editor.scss +++ b/packages/amis-editor-core/scss/editor.scss @@ -1430,7 +1430,7 @@ > .region-tip { position: absolute; right: 50%; - top: -19px; + top: -17px; transform: translateX(50%); background: $Editor-rgion-bg; // $Editor-rgion-bg; color: #fff; @@ -1482,11 +1482,11 @@ } // 兼容方案,避免便签被遮挡: 区域仅有 [内容区],头部标签放内部展示 - > div.region-tip.is-only-child-region, - &.region-label-within > .region-tip { - top: 1px; - border-radius: 0 0 3px 3px; - } + // > div.region-tip.is-only-child-region, + // &.region-label-within > .region-tip { + // top: 1px; + // border-radius: 0 0 3px 3px; + // } // 高亮区域hover态 &.region-hover { diff --git a/packages/amis-editor-core/src/component/RegionHLBox.tsx b/packages/amis-editor-core/src/component/RegionHLBox.tsx index 1e75ef2d2..c89b24a72 100644 --- a/packages/amis-editor-core/src/component/RegionHLBox.tsx +++ b/packages/amis-editor-core/src/component/RegionHLBox.tsx @@ -52,8 +52,8 @@ export default observer(function (props: HighlightBoxProps) { isDragEnter ? 'is-dragenter' : '', store.planDropId === id ? 'region-can-be-drop' : '', !isOnlyChildRegion && isHiglightHover ? 'region-hover' : '', - isOnlyChildRegion || isHiglight ? 'is-highlight' : '', - dx < 87 && dy < 21 && node.x < 190 ? 'region-label-within' : '' + isOnlyChildRegion || isHiglight ? 'is-highlight' : '' + // dx < 87 && dy < 21 && node.x < 190 ? 'region-label-within' : '' )} style={{ width: node.w,