feat: snap dialog to preview effects of book settings adjustments (#646)

This commit is contained in:
Huang Xin
2025-03-19 21:23:52 +08:00
committed by GitHub
parent 18c2ce1274
commit accf6fb5c7
2 changed files with 47 additions and 5 deletions
@@ -72,6 +72,7 @@ const SettingsDialog: React.FC<{ bookKey: string; config: BookConfig }> = ({ boo
onClose={handleClose}
className='modal-open'
boxClassName='sm:min-w-[520px]'
snapHeight={window.innerWidth < 640 ? 0.7 : undefined}
header={
<div className='flex w-full items-center justify-between'>
<button