Skip to content

Commit 22e66c4

Browse files
committed
fix: Style optimization
1 parent 65b3861 commit 22e66c4

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

frontend/src/views/chat/ExecutionDetails.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function getLogList(recordId: any) {
3939
}
4040
4141
const setDrawerSize = debounce(() => {
42-
drawerSize.value = window.innerWidth < 500 ? '460px' : `${window.innerWidth * 0.5}px`
42+
drawerSize.value =
43+
window.innerWidth < 500 ? '460px' : `${Math.max(window.innerWidth * 0.5, 600)}px`
4344
}, 500)
4445
4546
onMounted(() => {
@@ -152,7 +153,7 @@ defineExpose({
152153
font-weight: 400;
153154
font-size: 14px;
154155
line-height: 22px;
155-
width: 64%;
156+
width: calc(100% - 55px);
156157
}
157158
158159
.value {

frontend/src/views/ds/TableRelationship.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,15 @@ const initGraph = () => {
208208
graph.on(
209209
'node:port:mouseenter',
210210
debounce(({ e, node, port }: any) => {
211-
tooltipY.value = e.offsetY + 'px'
212-
tooltipX.value = e.offsetX + 'px'
213211
tooltipContent.value = node.port.ports.find(
214212
(ele: any) => +port === ele.id
215213
).attrs.portNameLabel.text
214+
if (tooltipContent.value) {
215+
tooltipY.value = e.offsetY + 'px'
216+
tooltipX.value = e.offsetX + 'px'
217+
} else {
218+
resetTooltip()
219+
}
216220
}, 100)
217221
)
218222

0 commit comments

Comments
 (0)