Skip to content

Commit

Permalink
Merge pull request #456 from KevinVandy/436-search-bar-uneven-spacing…
Browse files Browse the repository at this point in the history
…-when-positionglobalfilter-is-left

fix: uneven spacing on global filter
  • Loading branch information
alessandrojcm authored Dec 10, 2024
2 parents 23580b7 + 881a8ee commit 0446cd0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const MRT_GlobalFilterTextInput = <TData extends MRT_RowData>({
localization,
mantineSearchTextInputProps,
manualFiltering,
positionGlobalFilter
},
refs: { searchInputRef },
setGlobalFilter,
Expand Down Expand Up @@ -91,7 +92,7 @@ export const MRT_GlobalFilterTextInput = <TData extends MRT_RowData>({
<TextInput
leftSection={!enableGlobalFilterModes && <IconSearch />}
mt={0}
mx="sm"
mx={positionGlobalFilter !== 'left' ? 'mx' : undefined}
onChange={(event) => setSearchValue(event.target.value)}
placeholder={localization.search}
rightSection={
Expand Down

0 comments on commit 0446cd0

Please sign in to comment.