File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ function getLogList(recordId: any) {
3939}
4040
4141const 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
4546onMounted (() => {
@@ -152,7 +153,7 @@ defineExpose({
152153 font-weight : 400 ;
153154 font-size : 14px ;
154155 line-height : 22px ;
155- width : 64 % ;
156+ width : calc ( 100 % - 55 px ) ;
156157 }
157158
158159 .value {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments