mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-09 14:44:51 +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;
|
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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user