fix(eink): fixed sync toggle styles in eink mode, closes #4155 (#4163)

This commit is contained in:
Huang Xin
2026-05-15 01:57:23 +08:00
committed by GitHub
parent 708e06a46e
commit 16ffc17507
2 changed files with 2 additions and 5 deletions
@@ -129,10 +129,7 @@ export function SyncCategoriesSection() {
if (locked) return;
handleToggle(category, e.target.checked);
}}
className={clsx(
'toggle toggle-primary eink-bordered',
locked && 'cursor-not-allowed',
)}
className={clsx('toggle', locked && 'cursor-not-allowed')}
/>
</li>
);
@@ -350,7 +350,7 @@ const SettingsDialog: React.FC<{ bookKey: string }> = ({ bookKey }) => {
className='modal-open'
bgClassName={bookKey ? 'sm:!bg-black/20' : 'sm:!bg-black/50'}
boxClassName={clsx(
'sm:min-w-[520px] overflow-hidden bg-base-200',
'sm:min-w-[520px] overflow-hidden not-eink:bg-base-200',
appService?.isMobile && 'sm:max-w-[90%] sm:w-3/4',
)}
snapHeight={appService?.isMobile ? 0.7 : undefined}