web component rlt main button fix right unset
This commit is contained in:
parent
eea48c818a
commit
014cc50e99
@ -67,7 +67,7 @@ const mobileDropDown = css`
|
|||||||
props.theme.interfaceDirection === "rtl" &&
|
props.theme.interfaceDirection === "rtl" &&
|
||||||
css`
|
css`
|
||||||
left: ${(props) => props.theme.mainButtonMobile.dropDown.mobile.right};
|
left: ${(props) => props.theme.mainButtonMobile.dropDown.mobile.right};
|
||||||
right: 0;
|
right: unset;
|
||||||
`}
|
`}
|
||||||
bottom: ${(props) => props.theme.mainButtonMobile.dropDown.mobile.bottom};
|
bottom: ${(props) => props.theme.mainButtonMobile.dropDown.mobile.bottom};
|
||||||
|
|
||||||
@ -89,12 +89,13 @@ const StyledDropDown = styled(DropDown)`
|
|||||||
width: ${(props) => props.theme.mainButtonMobile.dropDown.width};
|
width: ${(props) => props.theme.mainButtonMobile.dropDown.width};
|
||||||
max-width: calc(100vw - 48px);
|
max-width: calc(100vw - 48px);
|
||||||
|
|
||||||
right: ${(props) => props.theme.mainButtonMobile.dropDown.right};
|
|
||||||
${(props) =>
|
${(props) =>
|
||||||
props.theme.interfaceDirection === "rtl" &&
|
props.theme.interfaceDirection === "rtl"
|
||||||
css`
|
? css`
|
||||||
left: ${(props) => props.theme.mainButtonMobile.dropDown.right};
|
left: ${(props) => props.theme.mainButtonMobile.dropDown.right};
|
||||||
right: 0;
|
`
|
||||||
|
: css`
|
||||||
|
right: ${(props) => props.theme.mainButtonMobile.dropDown.right};
|
||||||
`}
|
`}
|
||||||
bottom: ${(props) => props.theme.mainButtonMobile.dropDown.bottom};
|
bottom: ${(props) => props.theme.mainButtonMobile.dropDown.bottom};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user