Search: Center FolderSection spinner (#49494)

pull/49475/head
kay delaney 3 years ago committed by GitHub
parent 624f8ef40d
commit 861c6f21a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      public/app/features/search/page/components/FolderSection.tsx

@ -130,7 +130,7 @@ export const FolderSection: FC<SectionHeaderProps> = ({
const renderResults = () => { const renderResults = () => {
if (!results.value?.length) { if (!results.value?.length) {
if (results.loading) { if (results.loading) {
return <Spinner />; return <Spinner className={styles.spinner} />;
} }
return ( return (
@ -255,5 +255,10 @@ const getSectionHeaderStyles = stylesFactory((theme: GrafanaTheme, selected = fa
padding-top: 0px; padding-top: 0px;
padding-bottom: 0px; padding-bottom: 0px;
`, `,
spinner: css`
display: grid;
place-content: center;
padding-bottom: 1rem;
`,
}; };
}); });

Loading…
Cancel
Save