Skip to content

Commit 881a8ee

Browse files
committedDec 10, 2024·
fix: uneven spacing on global filter
1 parent 23580b7 commit 881a8ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎packages/mantine-react-table/src/components/inputs/MRT_GlobalFilterTextInput.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const MRT_GlobalFilterTextInput = <TData extends MRT_RowData>({
3030
localization,
3131
mantineSearchTextInputProps,
3232
manualFiltering,
33+
positionGlobalFilter
3334
},
3435
refs: { searchInputRef },
3536
setGlobalFilter,
@@ -91,7 +92,7 @@ export const MRT_GlobalFilterTextInput = <TData extends MRT_RowData>({
9192
<TextInput
9293
leftSection={!enableGlobalFilterModes && <IconSearch />}
9394
mt={0}
94-
mx="sm"
95+
mx={positionGlobalFilter !== 'left' ? 'mx' : undefined}
9596
onChange={(event) => setSearchValue(event.target.value)}
9697
placeholder={localization.search}
9798
rightSection={

0 commit comments

Comments
 (0)
Please sign in to comment.