mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: Style optimization
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user