DashboardsList: Fix height issue in topnav (#56661)

pull/56816/head
Torkel Ödegaard 3 years ago committed by GitHub
parent 67d93ceea0
commit 85e3ed491d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      public/app/core/components/PageNew/PageContents.tsx
  2. 1
      public/app/features/search/components/DashboardListPage.tsx

@ -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}</>;
};

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

Loading…
Cancel
Save