From 4ffd3584c6f2c70cda9fd6e2a1630ed91e1d0c74 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Tue, 13 Feb 2024 01:53:10 +0100 Subject: [PATCH] Handle RTL reading direction for double page reader (#594) Changing the reading direction for the double page reader did nothing. It just always was LTR. Regression introduced with 4d75474b39b1fda4c3e33e1fd58fce6df1e8db30 --- src/components/reader/DoublePage.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/reader/DoublePage.tsx b/src/components/reader/DoublePage.tsx index a87784ac..cdbc60e7 100644 --- a/src/components/reader/DoublePage.tsx +++ b/src/components/reader/DoublePage.tsx @@ -42,6 +42,7 @@ export const DoublePage = forwardRef((props: IProps, ref: any) => { ref={ref} sx={{ display: 'flex', + flexDirection: settings.readerType === 'DoubleLTR' ? 'row' : 'row-reverse', justifyContent: 'center', width: '100%', }}