Search: Center FolderSection spinner (#49494)

This commit is contained in:
kay delaney
2022-05-24 16:57:35 +01:00
committed by GitHub
parent 624f8ef40d
commit 861c6f21a0
@@ -130,7 +130,7 @@ export const FolderSection: FC<SectionHeaderProps> = ({
const renderResults = () => {
if (!results.value?.length) {
if (results.loading) {
return <Spinner />;
return <Spinner className={styles.spinner} />;
}
return (
@@ -255,5 +255,10 @@ const getSectionHeaderStyles = stylesFactory((theme: GrafanaTheme, selected = fa
padding-top: 0px;
padding-bottom: 0px;
`,
spinner: css`
display: grid;
place-content: center;
padding-bottom: 1rem;
`,
};
});