Fix library sort order icons

This commit is contained in:
schroda
2026-07-21 01:33:23 +02:00
parent 12fe47768e
commit 2f61188e75
3 changed files with 13 additions and 3 deletions

View File

@@ -16,9 +16,11 @@ interface IProps extends RadioInputProps {
sortDescending?: boolean | null | undefined; sortDescending?: boolean | null | undefined;
} }
export const SortRadioInput = memo(({ sortDescending, ...rest }: IProps) => ( export const SortRadioInput = memo(({ sortDescending, checkedIcon, ...rest }: IProps) => (
<RadioInput <RadioInput
checkedIcon={sortDescending ? <ArrowDownward color="primary" /> : <ArrowUpward color="primary" />}
{...rest} {...rest}
checkedIcon={
checkedIcon ?? (sortDescending ? <ArrowDownward color="primary" /> : <ArrowUpward color="primary" />)
}
/> />
)); ));

View File

@@ -217,7 +217,7 @@ export const LibraryOptionsPanel = ({
key={mode} key={mode}
label={t(label)} label={t(label)}
checked={categoryLibraryOptions.sortBy === mode} checked={categoryLibraryOptions.sortBy === mode}
checkedIcon={mode === 'random' ? <Replay /> : undefined} checkedIcon={mode === 'random' ? <Replay color="primary" /> : undefined}
sortDescending={categoryLibraryOptions.sortDesc} sortDescending={categoryLibraryOptions.sortDesc}
onClick={() => onClick={() =>
mode !== categoryLibraryOptions.sortBy mode !== categoryLibraryOptions.sortBy

View File

@@ -1119,6 +1119,10 @@ msgstr "Could not log out from KOReader Sync"
msgid "Could not migrate manga" msgid "Could not migrate manga"
msgstr "Could not migrate manga" msgstr "Could not migrate manga"
#: src/features/library/components/LibraryToolbarMenu.tsx
msgid "Could not open random entry"
msgstr "Could not open random entry"
#: src/features/downloads/screens/DownloadQueue.tsx #: src/features/downloads/screens/DownloadQueue.tsx
msgid "Could not remove all downloads from the queue" msgid "Could not remove all downloads from the queue"
msgstr "Could not remove all downloads from the queue" msgstr "Could not remove all downloads from the queue"
@@ -2784,6 +2788,10 @@ msgstr "Open in WebView"
msgid "Open page on exit" msgid "Open page on exit"
msgstr "Open page on exit" msgstr "Open page on exit"
#: src/features/library/components/LibraryToolbarMenu.tsx
msgid "Open random entry"
msgstr "Open random entry"
#: src/features/settings/screens/WebUISettings.tsx #: src/features/settings/screens/WebUISettings.tsx
msgid "Open the WebUI when starting the server" msgid "Open the WebUI when starting the server"
msgstr "Open the WebUI when starting the server" msgstr "Open the WebUI when starting the server"