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