diff options
Diffstat (limited to 'packages/renderer/src/components/locationBar/LocationInputAdornment.tsx')
-rw-r--r-- | packages/renderer/src/components/locationBar/LocationInputAdornment.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/renderer/src/components/locationBar/LocationInputAdornment.tsx b/packages/renderer/src/components/locationBar/LocationInputAdornment.tsx index 640cbb4..82f662d 100644 --- a/packages/renderer/src/components/locationBar/LocationInputAdornment.tsx +++ b/packages/renderer/src/components/locationBar/LocationInputAdornment.tsx | |||
@@ -23,11 +23,10 @@ import { styled } from '@mui/material/styles'; | |||
23 | 23 | ||
24 | const LocationInputAdornment = styled(InputAdornment, { | 24 | const LocationInputAdornment = styled(InputAdornment, { |
25 | name: 'LocationInputAdornment', | 25 | name: 'LocationInputAdornment', |
26 | })(({ theme: { direction }, position }) => { | 26 | })(({ position }) => { |
27 | const left = direction === 'ltr' ? 'start' : 'end'; | ||
28 | const marginStart = -10; | 27 | const marginStart = -10; |
29 | const marginEnd = 2; | 28 | const marginEnd = 2; |
30 | return position === left | 29 | return position === 'start' |
31 | ? { | 30 | ? { |
32 | marginLeft: marginStart, | 31 | marginLeft: marginStart, |
33 | marginRight: marginEnd, | 32 | marginRight: marginEnd, |