fix(rtl): background stub position condition based on rtl

This commit is contained in:
fateme.fazli 2019-08-31 16:13:53 +04:30
parent c3269fda17
commit 5128c1bb44

View File

@ -43,7 +43,7 @@ export const BackgroundStub = styled.div`
position: absolute; position: absolute;
top: 0; top: 0;
bottom: 0; bottom: 0;
${({ theme }) => theme.typography.direction === 'ltr' ? 'right: 0;' : 'left: 0;'}; ${({ theme }) => theme.typography.direction === 'rtl' ? 'left: 0;' : 'right: 0;'};
width: ${({ theme }) => { width: ${({ theme }) => {
if (theme.rightPanel.width.endsWith('%')) { if (theme.rightPanel.width.endsWith('%')) {
const percents = parseInt(theme.rightPanel.width, 10); const percents = parseInt(theme.rightPanel.width, 10);