Merge pull request #11192 from 2betop/chore-editor-1113

style: 调整区域展示样式避免挡住内容
This commit is contained in:
Allen 2024-11-13 14:02:31 +08:00 committed by GitHub
commit b319016d88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -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 {

View File

@ -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,