diff --git a/apps/readest-app/src/components/Dialog.tsx b/apps/readest-app/src/components/Dialog.tsx index a319d98d..ad32f78b 100644 --- a/apps/readest-app/src/components/Dialog.tsx +++ b/apps/readest-app/src/components/Dialog.tsx @@ -226,7 +226,7 @@ const Dialog: React.FC = ({ >
-
+
{header ? ( header ) : ( diff --git a/apps/readest-app/src/components/settings/DialogMenu.tsx b/apps/readest-app/src/components/settings/DialogMenu.tsx index eb32930f..f5a8d2e1 100644 --- a/apps/readest-app/src/components/settings/DialogMenu.tsx +++ b/apps/readest-app/src/components/settings/DialogMenu.tsx @@ -5,12 +5,12 @@ import { useEnv } from '@/context/EnvContext'; import { useSettingsStore } from '@/store/settingsStore'; import { useTranslation } from '@/hooks/useTranslation'; import { useCustomFontStore } from '@/store/customFontStore'; -import { useResponsiveSize } from '@/hooks/useResponsiveSize'; import { SettingsPanelType } from './SettingsDialog'; import Menu from '@/components/Menu'; import MenuItem from '@/components/MenuItem'; interface DialogMenuProps { + bookKey: string; activePanel: SettingsPanelType; setIsDropdownOpen?: (open: boolean) => void; onReset: () => void; @@ -18,6 +18,7 @@ interface DialogMenuProps { } const DialogMenu: React.FC = ({ + bookKey, activePanel, setIsDropdownOpen, onReset, @@ -25,7 +26,6 @@ const DialogMenu: React.FC = ({ }) => { const _ = useTranslation(); const { envConfig, appService } = useEnv(); - const iconSize = useResponsiveSize(16); const { setFontPanelView, isSettingsGlobal, setSettingsGlobal } = useSettingsStore(); const { getAllFonts, removeFont, saveCustomFonts } = useCustomFontStore(); @@ -59,8 +59,9 @@ const DialogMenu: React.FC = ({ : null} + Icon={isSettingsGlobal ? MdCheck : null} onClick={handleToggleGlobal} /> diff --git a/apps/readest-app/src/components/settings/SettingsDialog.tsx b/apps/readest-app/src/components/settings/SettingsDialog.tsx index 4a1de232..50908d02 100644 --- a/apps/readest-app/src/components/settings/SettingsDialog.tsx +++ b/apps/readest-app/src/components/settings/SettingsDialog.tsx @@ -256,6 +256,7 @@ const SettingsDialog: React.FC<{ bookKey: string }> = ({ bookKey }) => { toggleButton={} >