feat: senders master-detail layout with inline email view
Left panel: scrollable sender list with filter, email count, unread badge. Right panel: infinite-scroll email list, quick actions, click row to view detail (subject, meta, snippet, open in Gmail). Back button returns to list. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+79
-16
@@ -160,22 +160,85 @@ table.grid th, table.grid td { padding: 8px; border-bottom: 1px solid #2c3550; t
|
||||
}
|
||||
.react-grid-item.react-grid-placeholder { background: var(--accent); opacity: 0.25; border-radius: 10px; }
|
||||
|
||||
/* Senders by volume */
|
||||
.senders-page { max-width: 1100px; }
|
||||
.tier { margin-top: 22px; }
|
||||
.tier-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
|
||||
.tier-head h3 { margin: 0; font-size: 16px; }
|
||||
.tier-dot { width: 12px; height: 12px; border-radius: 50%; }
|
||||
.tier-count { color: var(--muted); font-size: 12px; }
|
||||
.sender-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
|
||||
.sender-block { background: var(--panel); border: 1px solid #2c3550; border-top: 3px solid var(--accent); border-radius: 8px; padding: 10px 12px; }
|
||||
.sb-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.sb-domain { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
|
||||
.sb-stats { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
|
||||
.sb-count { font-size: 20px; font-weight: 700; }
|
||||
.sb-unread { font-size: 11px; color: var(--accent); }
|
||||
.sb-unsub { font-size: 10px; color: var(--muted); border: 1px solid #36405c; border-radius: 4px; padding: 0 4px; }
|
||||
.tier-more { margin-top: 8px; }
|
||||
/* ── Senders master-detail ─────────────────────────────────────────────── */
|
||||
.senders-master-detail {
|
||||
display: grid;
|
||||
grid-template-columns: 280px 1fr;
|
||||
height: calc(100vh - 56px); /* fill below topbar */
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Left panel — sender list */
|
||||
.sl-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-right: 1px solid #2c3550;
|
||||
overflow: hidden;
|
||||
}
|
||||
.sl-search-wrap { padding: 10px 12px 6px; }
|
||||
.sl-search {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
background: var(--panel-2);
|
||||
border: 1px solid #2c3550;
|
||||
color: var(--text);
|
||||
border-radius: 6px;
|
||||
padding: 7px 10px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.sl-count { padding: 0 14px 6px; font-size: 11px; color: var(--muted); }
|
||||
.sl-list { flex: 1; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
|
||||
.sl-item {
|
||||
display: block; width: 100%; text-align: left;
|
||||
background: none; border: none; cursor: pointer;
|
||||
padding: 10px 14px; border-bottom: 1px solid #1e2540;
|
||||
color: var(--text);
|
||||
}
|
||||
.sl-item:hover { background: var(--panel-2); }
|
||||
.sl-item--active { background: var(--panel-2); border-left: 3px solid var(--accent); padding-left: 11px; }
|
||||
.sl-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.sl-addr { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px; }
|
||||
.sl-meta { display: flex; align-items: baseline; gap: 8px; }
|
||||
.sl-email-count { font-size: 13px; font-weight: 700; color: var(--accent); }
|
||||
.sl-unread { font-size: 11px; color: var(--muted); }
|
||||
|
||||
/* Right panel — email list for selected sender */
|
||||
.sd-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-y: auto;
|
||||
padding: 0;
|
||||
}
|
||||
.sd-panel-header {
|
||||
padding: 16px 20px 12px;
|
||||
border-bottom: 1px solid #2c3550;
|
||||
background: var(--panel);
|
||||
position: sticky; top: 0; z-index: 1;
|
||||
}
|
||||
.sd-panel-name { font-size: 16px; font-weight: 700; }
|
||||
.sd-panel-addr { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
|
||||
.sd-panel-count { font-size: 12px; color: var(--muted); }
|
||||
|
||||
/* Single email detail view */
|
||||
.sd-detail { padding: 20px; max-width: 760px; }
|
||||
.sd-back {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
background: none; border: 1px solid #2c3550; border-radius: 6px;
|
||||
color: var(--text); font-size: 13px; cursor: pointer;
|
||||
padding: 5px 12px; margin-bottom: 18px;
|
||||
}
|
||||
.sd-back:hover { background: var(--panel-2); }
|
||||
.sd-detail-header { margin-bottom: 14px; }
|
||||
.sd-detail-subject { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
|
||||
.sd-detail-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
|
||||
.sd-detail-sep { opacity: 0.4; }
|
||||
.sd-snippet { background: var(--panel); border: 1px solid #2c3550; border-radius: 8px; padding: 14px 16px; font-size: 13px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; margin-bottom: 18px; }
|
||||
.sd-detail-actions { display: flex; gap: 10px; }
|
||||
.btn-sm {
|
||||
background: var(--accent); color: #fff; border: none; border-radius: 6px;
|
||||
padding: 7px 14px; font-size: 13px; cursor: pointer; font-weight: 600;
|
||||
}
|
||||
.btn-sm:hover { opacity: 0.85; }
|
||||
|
||||
.page { max-width: 900px; }
|
||||
.form-row { display: flex; gap: 10px; margin: 14px 0; }
|
||||
|
||||
Reference in New Issue
Block a user