From 0e62c238f901275fbeb4360fe3f47c9d385abf8b Mon Sep 17 00:00:00 2001 From: benjdlambert Date: Thu, 24 Jul 2025 10:25:48 +0200 Subject: [PATCH] chore: moving things around Signed-off-by: benjdlambert --- .../catalog/src/alpha/DefaultEntityContentLayout.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/plugins/catalog/src/alpha/DefaultEntityContentLayout.tsx b/plugins/catalog/src/alpha/DefaultEntityContentLayout.tsx index 0b7b9be4f6..0d3d4ac6c9 100644 --- a/plugins/catalog/src/alpha/DefaultEntityContentLayout.tsx +++ b/plugins/catalog/src/alpha/DefaultEntityContentLayout.tsx @@ -102,6 +102,8 @@ const useStyles = makeStyles< gridArea: 'info', position: 'sticky', top: theme.spacing(3), + // this is a little unfortunate, it's basically vh - header, in order for the page to scroll + // naturally throught the main cards. maxHeight: `calc(100vh - ${theme.spacing(6)}px)`, overflowY: 'auto', alignSelf: 'start', @@ -163,6 +165,11 @@ export function DefaultEntityContentLayout(props: EntityContentLayoutProps) { <> {entityWarningContent}
+ {infoCards.length > 0 ? ( +
+ {infoCards.map(card => card.element)} +
+ ) : null}
{summaryCards.length > 0 ? (
@@ -179,11 +186,6 @@ export function DefaultEntityContentLayout(props: EntityContentLayoutProps) {
) : null}
- {infoCards.length > 0 ? ( -
- {infoCards.map(card => card.element)} -
- ) : null}
);