From 881a8ee3e4a5ae354c1504a05a54626c9330b79a Mon Sep 17 00:00:00 2001 From: Alessandro Cuppari Date: Tue, 10 Dec 2024 11:21:40 +0000 Subject: [PATCH] fix: uneven spacing on global filter --- .../src/components/inputs/MRT_GlobalFilterTextInput.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mantine-react-table/src/components/inputs/MRT_GlobalFilterTextInput.tsx b/packages/mantine-react-table/src/components/inputs/MRT_GlobalFilterTextInput.tsx index 4cc89b67b..f1b222914 100644 --- a/packages/mantine-react-table/src/components/inputs/MRT_GlobalFilterTextInput.tsx +++ b/packages/mantine-react-table/src/components/inputs/MRT_GlobalFilterTextInput.tsx @@ -30,6 +30,7 @@ export const MRT_GlobalFilterTextInput = ({ localization, mantineSearchTextInputProps, manualFiltering, + positionGlobalFilter }, refs: { searchInputRef }, setGlobalFilter, @@ -91,7 +92,7 @@ export const MRT_GlobalFilterTextInput = ({ } mt={0} - mx="sm" + mx={positionGlobalFilter !== 'left' ? 'mx' : undefined} onChange={(event) => setSearchValue(event.target.value)} placeholder={localization.search} rightSection={