mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 22:24:54 +03:00
fix(rtl): background stub position condition based on rtl
This commit is contained in:
parent
c3269fda17
commit
5128c1bb44
|
@ -43,7 +43,7 @@ export const BackgroundStub = styled.div`
|
|||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
${({ theme }) => theme.typography.direction === 'ltr' ? 'right: 0;' : 'left: 0;'};
|
||||
${({ theme }) => theme.typography.direction === 'rtl' ? 'left: 0;' : 'right: 0;'};
|
||||
width: ${({ theme }) => {
|
||||
if (theme.rightPanel.width.endsWith('%')) {
|
||||
const percents = parseInt(theme.rightPanel.width, 10);
|
||||
|
|
Loading…
Reference in New Issue
Block a user