DashboardsList: Fix height issue in topnav (#56661)

This commit is contained in:
Torkel Ödegaard
2022-10-12 12:00:45 +02:00
committed by GitHub
parent 67d93ceea0
commit 85e3ed491d
2 changed files with 5 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ interface Props {
className?: string;
}
export const PageContents: FC<Props> = ({ isLoading, children }) => {
return <>{isLoading ? <PageLoader /> : children}</>;
export const PageContents: FC<Props> = ({ isLoading, children, className }) => {
let content = className ? <div className={className}>{children}</div> : children;
return <>{isLoading ? <PageLoader /> : content}</>;
};

View File

@@ -45,6 +45,7 @@ export const DashboardListPage: FC<Props> = memo(({ match, location }) => {
className={css`
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
`}
>