diff --git a/frontend/src/components/ArticleLink.jsx b/frontend/src/components/ArticleLink.jsx index c6a5750..7c65814 100644 --- a/frontend/src/components/ArticleLink.jsx +++ b/frontend/src/components/ArticleLink.jsx @@ -114,6 +114,15 @@ export default function ArticleLink({ slug, sectionId = null, children, classNam setOpen(false) return } + // Already reading in the pane? Then the pane is where this goes, and the + // click says so. There is no second pane to offer, and asking "beside what + // you are reading, or in a tab?" of somebody who is already beside what + // they were reading is a question with one real answer. + if (split?.inPane) { + setOpen(false) + split.open(slug) + return + } reveal() } @@ -134,7 +143,7 @@ export default function ArticleLink({ slug, sectionId = null, children, classNam {preview.status !== 'published' && ' · draft'} - {split && ( + {split && !split.inPane && (