feat(v11-e): centre BAS embed dynamique click-journal + suppression ScrollArticles

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jules Neny
2026-05-11 15:19:24 +02:00
parent 4a29a9592a
commit 61e53a04d5
4 changed files with 195 additions and 78 deletions

View File

@@ -77,6 +77,15 @@ onUnmounted(() => {
window.removeEventListener('platform-filter-change', onPlatformChange as EventListener)
})
const onItemClick = (item: JournalItem, e: MouseEvent) => {
if (e.metaKey || e.ctrlKey) {
window.open(item.url, '_blank', 'noopener')
return
}
e.preventDefault()
window.dispatchEvent(new CustomEvent('journal-item-click', { detail: { item } }))
}
const visibleItems = computed(() => {
const keys = Object.keys(filters.value)
let filtered: JournalItem[]
@@ -156,6 +165,7 @@ const platformLabel = (p: string) => {
target="_blank"
rel="noopener noreferrer"
class="block group"
@click="onItemClick(item, $event)"
>
<div class="flex items-baseline gap-2 text-[11px] text-neutral-500 mb-1">
<time>{{ formatDate(item.date) }}</time>