app: remove a bunch of wrapping page elements

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2026-02-13 19:56:51 +01:00
parent 7b82dca42b
commit 5fa6797b95
3 changed files with 21 additions and 67 deletions
@@ -24,7 +24,7 @@ import {
useApi,
appTreeApiRef,
} from '@backstage/frontend-plugin-api';
import { Flex } from '@backstage/ui';
import { Flex, FullPage } from '@backstage/ui';
import { useLayoutEffect, useMemo, useRef, useState } from 'react';
type NodeType =
@@ -148,22 +148,19 @@ export function TreeVisualizer() {
const graphData = useMemo(() => resolveGraphData(tree), [tree]);
return (
<Flex
style={{
height: '100%',
overflow: 'hidden',
}}
>
<DependencyGraph
fit="contain"
{...graphData}
nodeMargin={10}
rankMargin={50}
paddingX={50}
renderNode={Node}
ranker={DependencyGraphTypes.Ranker.TIGHT_TREE}
direction={DependencyGraphTypes.Direction.LEFT_RIGHT}
/>
</Flex>
<FullPage>
<Flex style={{ height: '100%' }}>
<DependencyGraph
fit="contain"
{...graphData}
nodeMargin={10}
rankMargin={50}
paddingX={50}
renderNode={Node}
ranker={DependencyGraphTypes.Ranker.TIGHT_TREE}
direction={DependencyGraphTypes.Direction.LEFT_RIGHT}
/>
</Flex>
</FullPage>
);
}