refactor: 优化 hover 节点名称时的 UI

This commit is contained in:
力皓 2021-06-07 16:55:17 +08:00
parent fb93b8afeb
commit 0105365651
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,6 @@
margin-right: 2px;
color: var(--color-icon-white, @title-bgcolor);
border-radius: @global-border-radius;
margin-right: 2px;
pointer-events: auto;
flex-grow: 0;
flex-shrink: 0;
@ -45,7 +44,8 @@
visibility: hidden;
}
.instance-node-selector-node {
margin: 2px 0;
height: 20px;
margin-top: 2px;
&-content {
padding-left: 6px;
background: #78869a;

View File

@ -114,7 +114,7 @@ export default class InstanceNodeSelector extends React.Component<IProps, IState
</div>
}
triggerType="hover"
offset={[0, 2]}
offset={[0, 0]}
>
<div className="instance-node-selector">{this.renderNodes(node)}</div>
</Popup>