From 54616caf7acefd63e2ea8a8323efc1d926d09c0c Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 10 Jul 2026 23:42:49 +0200 Subject: [PATCH] Fix reader desktop nav bar page/chapter select rtl styling --- .../components/ReaderNavBarDesktopChapterNavigation.tsx | 4 +++- .../desktop/components/ReaderNavBarDesktopPageNavigation.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/features/reader/overlay/navigation/desktop/components/ReaderNavBarDesktopChapterNavigation.tsx b/src/features/reader/overlay/navigation/desktop/components/ReaderNavBarDesktopChapterNavigation.tsx index c8884c24..8e7492a9 100644 --- a/src/features/reader/overlay/navigation/desktop/components/ReaderNavBarDesktopChapterNavigation.tsx +++ b/src/features/reader/overlay/navigation/desktop/components/ReaderNavBarDesktopChapterNavigation.tsx @@ -26,6 +26,7 @@ import { ReaderControls } from '@/features/reader/services/ReaderControls.ts'; import type { ReaderStateChapters } from '@/features/reader/Reader.types.ts'; import { withPropsFrom } from '@/base/hoc/withPropsFrom.tsx'; import type { ChapterIdInfo } from '@/features/chapter/Chapter.types.ts'; +import { useTheme } from '@mui/material/styles'; const BaseReaderNavBarDesktopChapterNavigation = ({ currentChapterId, @@ -43,6 +44,7 @@ const BaseReaderNavBarDesktopChapterNavigation = ({ readerThemeDirection: ReturnType; }) => { const { t } = useLingui(); + const theme = useTheme(); const popupState = usePopupState({ variant: 'popover', popupId: 'reader-nav-bar-desktop-chapter-list' }); @@ -60,7 +62,7 @@ const BaseReaderNavBarDesktopChapterNavigation = ({ }} disabled={getOptionForDirection(!previousChapter, !nextChapter, readerThemeDirection)} /> - + {t`Chapter`}