feat: click email row opens it in Gmail (noopener/noreferrer)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -119,7 +119,16 @@ export default function FolderView() {
|
||||
<table className="email-list">
|
||||
<tbody>
|
||||
{emails.map((e) => (
|
||||
<tr key={e.id} className={`email-row${e.isUnread ? ' email-row--unread' : ''}`}>
|
||||
<tr
|
||||
key={e.id}
|
||||
className={`email-row${e.isUnread ? ' email-row--unread' : ''}`}
|
||||
onClick={() => window.open(
|
||||
`https://mail.google.com/mail/u/0/#all/${e.gmailMessageId}`,
|
||||
'_blank',
|
||||
'noopener,noreferrer'
|
||||
)}
|
||||
title="Open in Gmail"
|
||||
>
|
||||
<td className="el-unread">{e.isUnread && <span className="unread-dot" />}</td>
|
||||
<td className="el-sender" title={e.senderAddress}>
|
||||
{e.senderDisplayName || e.senderAddress}
|
||||
|
||||
Reference in New Issue
Block a user