fix: Style optimization

This commit is contained in:
dataeaseShu
2026-03-19 09:39:06 +08:00
committed by dataeaseShu
parent 65b386138c
commit 22e66c490f
2 changed files with 9 additions and 4 deletions
+3 -2
View File
@@ -39,7 +39,8 @@ function getLogList(recordId: any) {
}
const setDrawerSize = debounce(() => {
drawerSize.value = window.innerWidth < 500 ? '460px' : `${window.innerWidth * 0.5}px`
drawerSize.value =
window.innerWidth < 500 ? '460px' : `${Math.max(window.innerWidth * 0.5, 600)}px`
}, 500)
onMounted(() => {
@@ -152,7 +153,7 @@ defineExpose({
font-weight: 400;
font-size: 14px;
line-height: 22px;
width: 64%;
width: calc(100% - 55px);
}
.value {
+6 -2
View File
@@ -208,11 +208,15 @@ const initGraph = () => {
graph.on(
'node:port:mouseenter',
debounce(({ e, node, port }: any) => {
tooltipY.value = e.offsetY + 'px'
tooltipX.value = e.offsetX + 'px'
tooltipContent.value = node.port.ports.find(
(ele: any) => +port === ele.id
).attrs.portNameLabel.text
if (tooltipContent.value) {
tooltipY.value = e.offsetY + 'px'
tooltipX.value = e.offsetX + 'px'
} else {
resetTooltip()
}
}, 100)
)