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
+1 -14
View File
@@ -57,19 +57,6 @@ export const AppRoutes = createExtension({
return element;
};
return [
coreExtensionData.reactElement(
<div
style={{
display: 'flex',
flexDirection: 'column',
height: '100vh',
overflow: 'auto',
}}
>
<Routes />
</div>,
),
];
return [coreExtensionData.reactElement(<Routes />)];
},
});
+5 -35
View File
@@ -26,7 +26,7 @@ import {
ErrorPanel,
Progress as ProgressComponent,
} from '@backstage/core-components';
import { Header, Flex } from '@backstage/ui';
import { Header } from '@backstage/ui';
import Button from '@material-ui/core/Button';
export const Progress = SwappableComponentBlueprint.make({
@@ -76,10 +76,7 @@ export const PageLayout = SwappableComponentBlueprint.make({
const { title, icon, noHeader, headerActions, tabs, children } = props;
if (tabs) {
return (
<Flex
direction="column"
style={{ flexGrow: 1, minHeight: 0, gap: 0 }}
>
<>
{!noHeader && (
<Header
title={title}
@@ -88,38 +85,11 @@ export const PageLayout = SwappableComponentBlueprint.make({
customActions={headerActions}
/>
)}
<main
style={{
flex: '1 1 0',
minHeight: 0,
overflow: 'auto',
padding: 0,
margin: 0,
}}
>
{children}
</main>
</Flex>
{children}
</>
);
}
return (
<Flex
direction="column"
style={{ flexGrow: 1, minHeight: 0, gap: 0 }}
>
<main
style={{
flex: '1 1 0',
minHeight: 0,
overflow: 'auto',
padding: 0,
margin: 0,
}}
>
{children}
</main>
</Flex>
);
return <>{children}</>;
},
}),
});