design: OrganizeNotebookDialog → modal centré au lieu de slider
Cohérent avec Wizard, Planning, Exercices — tous en modal centré. Scale animation au lieu de slide x. max-h-85vh avec scroll interne.
This commit is contained in:
@@ -100,15 +100,15 @@ export function OrganizeNotebookDialog({
|
|||||||
initial={{ opacity: 0 }}
|
initial={{ opacity: 0 }}
|
||||||
animate={{ opacity: 1 }}
|
animate={{ opacity: 1 }}
|
||||||
exit={{ opacity: 0 }}
|
exit={{ opacity: 0 }}
|
||||||
className="fixed inset-0 z-50 bg-black/40 backdrop-blur-sm"
|
className="fixed inset-0 z-50 bg-black/40 backdrop-blur-sm flex items-center justify-center p-4"
|
||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
/>
|
>
|
||||||
<motion.div
|
<motion.div
|
||||||
initial={{ opacity: 0, x: slide }}
|
initial={{ opacity: 0, scale: 0.96 }}
|
||||||
animate={{ opacity: 1, x: 0 }}
|
animate={{ opacity: 1, scale: 1 }}
|
||||||
exit={{ opacity: 0, x: slide }}
|
exit={{ opacity: 0, scale: 0.96 }}
|
||||||
transition={{ type: 'spring', stiffness: 300, damping: 32 }}
|
transition={{ type: 'spring', stiffness: 300, damping: 28 }}
|
||||||
className="fixed end-0 top-0 bottom-0 z-50 w-full max-w-md bg-memento-paper dark:bg-zinc-900 border-s border-border shadow-2xl flex flex-col"
|
className="w-full max-w-lg bg-memento-paper dark:bg-zinc-900 rounded-2xl border border-border shadow-2xl flex flex-col max-h-[85vh] overflow-hidden"
|
||||||
onClick={e => e.stopPropagation()}
|
onClick={e => e.stopPropagation()}
|
||||||
>
|
>
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
@@ -119,7 +119,7 @@ export function OrganizeNotebookDialog({
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h2 className="text-sm font-semibold text-ink dark:text-dark-ink font-memento-serif">{t('organizeNotebook.title')}</h2>
|
<h2 className="text-sm font-semibold text-ink dark:text-dark-ink font-memento-serif">{t('organizeNotebook.title')}</h2>
|
||||||
<p className="text-[10px] text-concrete truncate max-w-[200px]">{notebookName}</p>
|
<p className="text-[10px] text-concrete truncate max-w-[240px]">{notebookName}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button onClick={handleClose} disabled={step === 'analyzing' || step === 'executing'}
|
<button onClick={handleClose} disabled={step === 'analyzing' || step === 'executing'}
|
||||||
|
|||||||
Reference in New Issue
Block a user