diff --git a/packages/features/users/components/UserTable/UserListTable.tsx b/packages/features/users/components/UserTable/UserListTable.tsx index 75e9584e3f..52dff98145 100644 --- a/packages/features/users/components/UserTable/UserListTable.tsx +++ b/packages/features/users/components/UserTable/UserListTable.tsx @@ -475,38 +475,46 @@ export function UserListTable() { isPending={isPending} onScroll={(e) => fetchMoreOnBottomReached(e.target as HTMLDivElement)}> -
- setDebouncedSearchTerm(value)} /> - handleDownload()} - data-testid="export-members-button"> - {t("download")} - - {/* We have to omit member because we don't want the filter to show but we can't disable filtering as we need that for the search bar */} - - - {adminOrOwner && ( +
+
+ setDebouncedSearchTerm(value)} + className="sm:max-w-64 max-w-full" + /> +
+
- dispatch({ - type: "INVITE_MEMBER", - payload: { - showModal: true, - }, - }) - } - data-testid="new-organization-member-button"> - {t("add")} + color="secondary" + StartIcon="file-down" + loading={isDownloading} + onClick={() => handleDownload()} + data-testid="export-members-button"> + {t("download")} - )} + {/* We have to omit member because we don't want the filter to show but we can't disable filtering as we need that for the search bar */} + + + {adminOrOwner && ( + + dispatch({ + type: "INVITE_MEMBER", + payload: { + showModal: true, + }, + }) + } + data-testid="new-organization-member-button"> + {t("add")} + + )} +
diff --git a/packages/ui/components/data-table/DataTableToolbar.tsx b/packages/ui/components/data-table/DataTableToolbar.tsx index 9e30abd3ae..e83ab97f9f 100644 --- a/packages/ui/components/data-table/DataTableToolbar.tsx +++ b/packages/ui/components/data-table/DataTableToolbar.tsx @@ -34,10 +34,11 @@ interface SearchBarProps { table: Table; searchKey?: string; onSearch?: (value: string) => void; + className?: string; } function SearchBarComponent( - { table, searchKey, onSearch }: SearchBarProps, + { table, searchKey, onSearch, className }: SearchBarProps, ref: React.Ref ) { const [searchTerm, setSearchTerm] = useState(""); @@ -51,7 +52,7 @@ function SearchBarComponent( return ( setSearchTerm(event.target.value.trim())}