aboutsummaryrefslogtreecommitdiffstats
path: root/packages/renderer/src/components/locationBar/LocationInputAdornment.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-04-14 17:15:19 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-05-16 00:55:01 +0200
commit95ff89bf41bcf23e7785b37b2515a5fbc966da15 (patch)
treea194b3f87af747db2e7486cc1055ab6bbb80229c /packages/renderer/src/components/locationBar/LocationInputAdornment.tsx
parentchore(deps): Bump electron to 19 for setBackgroundColor fix (diff)
downloadsophie-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.tsx5
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
24const LocationInputAdornment = styled(InputAdornment, { 24const 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,