Adjust graphs height

This commit is contained in:
Piotr Rogowski 2022-10-20 13:21:17 +02:00
parent 17cb793db8
commit 44d2d32fd7
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -119,7 +119,7 @@ const Logs = ({
} else {
// not enough space to put 2 graphs
setShowSingleGraph(true);
setCanvasHeight((minCanvasHeightInner - 100) / 2);
setCanvasHeight((minCanvasHeightInner - 140) / 2);
}
}, []);