From 36d6ec5d86f5fff58e47bf33331a507269cfe2c6 Mon Sep 17 00:00:00 2001 From: Maximilian Vorbrodt Date: Fri, 9 Dec 2022 11:56:46 +0100 Subject: [PATCH] make diagram scale to viewport without growing on its own Signed-off-by: Maximilian Vorbrodt --- .../src/components/GroupsExplorerContent/GroupsDiagram.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/explore/src/components/GroupsExplorerContent/GroupsDiagram.tsx b/plugins/explore/src/components/GroupsExplorerContent/GroupsDiagram.tsx index 674ef1e43f..371548fb2e 100644 --- a/plugins/explore/src/components/GroupsExplorerContent/GroupsDiagram.tsx +++ b/plugins/explore/src/components/GroupsExplorerContent/GroupsDiagram.tsx @@ -43,9 +43,12 @@ import useAsync from 'react-use/lib/useAsync'; const useStyles = makeStyles((theme: BackstageTheme) => ({ graph: { + height: '100%', + position: 'absolute', minHeight: '100%', }, graphWrapper: { + position: 'relative', height: '100%', }, organizationNode: {