Skip to content

Commit 24e0fb7

Browse files
committed
fix(crud-toolbar): flickering in refresh button
1 parent 20d740f commit 24e0fb7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/compass-crud/src/components/crud-toolbar.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ const docsPerPageOptionStyles = css({
7575
width: spacing[1600] + spacing[300],
7676
});
7777

78+
const loaderContainerStyles = css({
79+
paddingLeft: 8,
80+
paddingRight: 8,
81+
});
82+
7883
type ExportDataOption = 'export-query' | 'export-full-collection';
7984
const exportDataActions: MenuAction<ExportDataOption>[] = [
8085
{ action: 'export-query', label: 'Export query results' },
@@ -380,7 +385,9 @@ const CrudToolbar: React.FunctionComponent<CrudToolbarProps> = ({
380385
{displayedDocumentCount && `of ${displayedDocumentCount}`}
381386
</Body>
382387
{loadingCount && (
383-
<SpinLoader size="12px" title="Fetching document count…" />
388+
<div className={loaderContainerStyles}>
389+
<SpinLoader size="12px" title="Fetching document count…" />
390+
</div>
384391
)}
385392
{!loadingCount && !isFetching && (
386393
<IconButton

0 commit comments

Comments
 (0)