Reader overlay mobile bottom bar

This commit is contained in:
schroda
2024-10-03 04:03:04 +02:00
parent c1eb631422
commit 671059c65c
22 changed files with 719 additions and 99 deletions

View File

@@ -40,7 +40,7 @@ import {
import { defaultPromiseErrorHandler } from '@/lib/DefaultPromiseErrorHandler.ts';
import { useMetadataServerSettings } from '@/modules/settings/services/ServerSettingsMetadata.ts';
type BaseProps = { onClose: () => void };
type BaseProps = { onClose: () => void; selectable?: boolean };
type TChapter = ChapterIdInfo &
ChapterMangaInfo &
@@ -71,6 +71,7 @@ export const ChapterActionMenuItems = ({
canBeDownloaded = false,
selectedChapters = [],
onClose,
selectable = true,
}: Props) => {
const { t } = useTranslation();
@@ -158,7 +159,7 @@ export const ChapterActionMenuItems = ({
return (
<>
{isSingleMode && (
{isSingleMode && selectable && (
<MenuItem onClick={handleSelect} Icon={CheckBoxOutlineBlank} title={t('chapter.action.label.select')} />
)}
{isSingleMode && (