Search: Center FolderSection spinner (#49494)
This commit is contained in:
@@ -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;
|
||||
`,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user