fix: PublishDialog sorti du toolbar div — position fixed correcte
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"lastRunAtMs": 1781973755639,
|
"lastRunAtMs": 1781973755639,
|
||||||
"turnsSinceLastRun": 3,
|
"turnsSinceLastRun": 4,
|
||||||
"lastTranscriptMtimeMs": 1781973755517.7488,
|
"lastTranscriptMtimeMs": 1781973755517.7488,
|
||||||
"lastProcessedGenerationId": "9d046b90-b9f3-4986-a174-49dce0b8b51f",
|
"lastProcessedGenerationId": "bcd357e0-6c9c-4e2b-b7dd-ee6d7c50d52a",
|
||||||
"trialStartedAtMs": null
|
"trialStartedAtMs": null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -605,17 +605,6 @@ export function NoteEditorToolbar({ mode, onClose, onToggleAttachments, attachme
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{publishOpen && (
|
|
||||||
<PublishDialog
|
|
||||||
open={publishOpen}
|
|
||||||
onClose={() => setPublishOpen(false)}
|
|
||||||
noteId={note.id}
|
|
||||||
noteTitle={state.title || note.title || 'Untitled'}
|
|
||||||
isPublic={note.isPublic}
|
|
||||||
publicSlug={note.publicSlug ?? null}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<button
|
<button
|
||||||
aria-label={t('notes.documentInfoAria')}
|
aria-label={t('notes.documentInfoAria')}
|
||||||
onClick={() => { actions.setInfoOpen(!state.infoOpen); actions.setAiOpen(false) }}
|
onClick={() => { actions.setInfoOpen(!state.infoOpen); actions.setAiOpen(false) }}
|
||||||
@@ -763,7 +752,16 @@ export function NoteEditorToolbar({ mode, onClose, onToggleAttachments, attachme
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* Hidden file input for Markdown import — remplacé par création dynamique dans openMarkdownImport */}
|
{publishOpen && (
|
||||||
|
<PublishDialog
|
||||||
|
open={publishOpen}
|
||||||
|
onClose={() => setPublishOpen(false)}
|
||||||
|
noteId={note.id}
|
||||||
|
noteTitle={state.title || note.title || 'Untitled'}
|
||||||
|
isPublic={note.isPublic}
|
||||||
|
publicSlug={note.publicSlug ?? null}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ export function PublishDialog({ open, onClose, noteId, noteTitle, isPublic: init
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[300] flex items-center justify-center p-4 bg-black/40 backdrop-blur-sm" dir="auto" onClick={onClose}>
|
<div className="fixed inset-0 z-[300] flex items-center justify-center p-4 bg-black/40 backdrop-blur-sm" dir="auto" onClick={onClose}>
|
||||||
<div className="w-full max-w-md rounded-2xl border border-border bg-card shadow-2xl p-5" onClick={e => e.stopPropagation()}>
|
<div className="w-full max-w-md max-h-[90vh] overflow-y-auto rounded-2xl border border-border bg-card shadow-2xl p-5" onClick={e => e.stopPropagation()}>
|
||||||
<div className="flex items-center justify-between mb-4">
|
<div className="flex items-center justify-between mb-4">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<div className="w-8 h-8 rounded-xl bg-brand-accent/10 flex items-center justify-center">
|
<div className="w-8 h-8 rounded-xl bg-brand-accent/10 flex items-center justify-center">
|
||||||
|
|||||||
Reference in New Issue
Block a user