feat(v13-e): manifeste UX preview centrale (racine) + page /manifeste preserve standalone

This commit is contained in:
Jules Neny
2026-05-11 20:08:20 +02:00
parent 8e7125b426
commit b4f6d63f33
6 changed files with 292 additions and 56 deletions

View File

@@ -168,7 +168,9 @@ import PreviewArticle from '../vue/PreviewArticle.vue';
}
};
window.addEventListener('journal-item-click', () => {
// V1.2-P : ouverture preview article via journal-item-click
// V1.3-E : ouverture preview unifiee via preview-open (article OU manifeste)
const openPreview = () => {
applyPreviewState(true);
// Scroll vers la preview apres mount
requestAnimationFrame(() => {
@@ -178,7 +180,9 @@ import PreviewArticle from '../vue/PreviewArticle.vue';
grid.scrollTo({ top: Math.max(0, previewTop - 8), behavior: 'smooth' });
}
});
});
};
window.addEventListener('journal-item-click', openPreview);
window.addEventListener('preview-open', openPreview);
window.addEventListener('preview-close', () => {
applyPreviewState(false);
});