diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-04-14 17:15:19 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-05-16 00:55:01 +0200 |
commit | 95ff89bf41bcf23e7785b37b2515a5fbc966da15 (patch) | |
tree | a194b3f87af747db2e7486cc1055ab6bbb80229c /packages/renderer/src/components/locationBar/LocationInputAdornment.tsx | |
parent | chore(deps): Bump electron to 19 for setBackgroundColor fix (diff) | |
download | sophie-95ff89bf41bcf23e7785b37b2515a5fbc966da15.tar.gz sophie-95ff89bf41bcf23e7785b37b2515a5fbc966da15.tar.zst sophie-95ff89bf41bcf23e7785b37b2515a5fbc966da15.zip |
fix(renderer): Flip all RTL styles
We need a sylis plugin for this according to
https://mui.com/material-ui/guides/right-to-left/#3-install-the-rtl-plugin
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
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, |