@@ -41,13 +41,6 @@ export const DeliveryTabHeader = ({
4141 const theme = useTheme ( ) ;
4242
4343 const xsDown = useMediaQuery ( ( theme : Theme ) => theme . breakpoints . down ( 'sm' ) ) ;
44- const customBreakpoint = 636 ;
45- const customXsDownBreakpoint = useMediaQuery ( ( theme : Theme ) =>
46- theme . breakpoints . down ( customBreakpoint )
47- ) ;
48- const customSmMdBetweenBreakpoint = useMediaQuery ( ( theme : Theme ) =>
49- theme . breakpoints . between ( customBreakpoint , 'md' )
50- ) ;
5144 const searchLabel = `Search for a ${ entity } ` ;
5245
5346 return (
@@ -66,23 +59,15 @@ export const DeliveryTabHeader = ({
6659 alignItems : 'center' ,
6760 display : 'flex' ,
6861 flexWrap : xsDown ? 'wrap' : 'nowrap' ,
69- gap : 3 ,
62+ gap : ` ${ theme . spacingFunction ( 24 ) } 0` ,
7063 justifyContent :
7164 onSearch && searchValue !== undefined
7265 ? 'space-between'
7366 : 'flex-end' ,
7467 flex : '1 1 auto' ,
7568
76- marginLeft : customSmMdBetweenBreakpoint
77- ? theme . spacingFunction ( 16 )
78- : customXsDownBreakpoint
79- ? theme . spacingFunction ( 8 )
80- : undefined ,
81- marginRight : customSmMdBetweenBreakpoint
82- ? theme . spacingFunction ( 16 )
83- : customXsDownBreakpoint
84- ? theme . spacingFunction ( 8 )
85- : undefined ,
69+ marginLeft : 0 ,
70+ marginRight : 0 ,
8671 } }
8772 >
8873 { onSearch && searchValue !== undefined && (
@@ -142,6 +127,9 @@ export const DeliveryTabHeader = ({
142127 data-pendo-id = { `Logs Delivery ${ entity } s-Create ${ entity } ` }
143128 disabled = { disabledCreateButton }
144129 onClick = { onButtonClick }
130+ sx = { {
131+ whiteSpace : 'nowrap' ,
132+ } }
145133 { ...buttonDataAttrs }
146134 >
147135 { createButtonText ?? `Create ${ entity } ` }
@@ -157,7 +145,10 @@ const StyledActions = styled('div')(({ theme }) => ({
157145 display : 'flex' ,
158146 gap : theme . spacingFunction ( 24 ) ,
159147 justifyContent : 'flex-end' ,
160- marginLeft : 'auto' ,
148+
149+ [ theme . breakpoints . up ( 'sm' ) ] : {
150+ marginLeft : 'auto' ,
151+ } ,
161152
162153 '& .MuiAutocomplete-root > .MuiBox-root' : {
163154 display : 'flex' ,
0 commit comments