Adjust graphs height
This commit is contained in:
parent
17cb793db8
commit
44d2d32fd7
|
@ -92,7 +92,7 @@ const Diagnose = ({
|
||||||
|
|
||||||
const calculateCanvasSize = useCallback(() => {
|
const calculateCanvasSize = useCallback(() => {
|
||||||
setCanvasWidth((contentRef.current?.clientWidth || 0) - margin);
|
setCanvasWidth((contentRef.current?.clientWidth || 0) - margin);
|
||||||
setCanvasHeight(Math.round(window.innerHeight - 220));
|
setCanvasHeight(Math.round(window.innerHeight - 110));
|
||||||
}, []);
|
}, []);
|
||||||
const siderProps = {
|
const siderProps = {
|
||||||
width: sidebarWidth,
|
width: sidebarWidth,
|
||||||
|
|
|
@ -119,7 +119,7 @@ const Logs = ({
|
||||||
} else {
|
} else {
|
||||||
// not enough space to put 2 graphs
|
// not enough space to put 2 graphs
|
||||||
setShowSingleGraph(true);
|
setShowSingleGraph(true);
|
||||||
setCanvasHeight((minCanvasHeightInner - 100) / 2);
|
setCanvasHeight((minCanvasHeightInner - 140) / 2);
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue