style: 调整区域展示样式避免挡住内容

This commit is contained in:
2betop 2024-11-13 11:45:33 +08:00
parent 1b465ce601
commit b46924a2ac
2 changed files with 8 additions and 8 deletions

View File

@ -1430,7 +1430,7 @@
> .region-tip { > .region-tip {
position: absolute; position: absolute;
right: 50%; right: 50%;
top: -19px; top: -17px;
transform: translateX(50%); transform: translateX(50%);
background: $Editor-rgion-bg; // $Editor-rgion-bg; background: $Editor-rgion-bg; // $Editor-rgion-bg;
color: #fff; color: #fff;
@ -1482,11 +1482,11 @@
} }
// 兼容方案避免便签被遮挡: 区域仅有 [内容区]头部标签放内部展示 // 兼容方案避免便签被遮挡: 区域仅有 [内容区]头部标签放内部展示
> div.region-tip.is-only-child-region, // > div.region-tip.is-only-child-region,
&.region-label-within > .region-tip { // &.region-label-within > .region-tip {
top: 1px; // top: 1px;
border-radius: 0 0 3px 3px; // border-radius: 0 0 3px 3px;
} // }
// 高亮区域hover态 // 高亮区域hover态
&.region-hover { &.region-hover {

View File

@ -52,8 +52,8 @@ export default observer(function (props: HighlightBoxProps) {
isDragEnter ? 'is-dragenter' : '', isDragEnter ? 'is-dragenter' : '',
store.planDropId === id ? 'region-can-be-drop' : '', store.planDropId === id ? 'region-can-be-drop' : '',
!isOnlyChildRegion && isHiglightHover ? 'region-hover' : '', !isOnlyChildRegion && isHiglightHover ? 'region-hover' : '',
isOnlyChildRegion || isHiglight ? 'is-highlight' : '', isOnlyChildRegion || isHiglight ? 'is-highlight' : ''
dx < 87 && dy < 21 && node.x < 190 ? 'region-label-within' : '' // dx < 87 && dy < 21 && node.x < 190 ? 'region-label-within' : ''
)} )}
style={{ style={{
width: node.w, width: node.w,