diff --git a/frontend/src/screens/Inbox.jsx b/frontend/src/screens/Inbox.jsx index 059503c..7516af3 100644 --- a/frontend/src/screens/Inbox.jsx +++ b/frontend/src/screens/Inbox.jsx @@ -1018,6 +1018,11 @@ export default function Inbox() { function select(id) { setSelectedId(id) + // Phones swap the list for the detail pane — bring its top into view. + if (window.matchMedia?.('(max-width: 900px)').matches) { + window.scrollTo(0, 0) + document.querySelector('.content')?.scrollTo?.(0, 0) + } const item = inbox.find((i) => i.id === id) if (item?.kind === 'form') return // sheet rows have no mailbox read state if (item?.unread) setRead.mutate({ ids: [id], read: true }) @@ -1151,7 +1156,7 @@ export default function Inbox() { /> -