web: attention / "Needs you" surface — bell, sheet, dismissals (R15, R2)

This commit is contained in:
2026-10-19 04:52:34 +01:00
parent 9555bfe58f
commit f3bc6ed126
6 changed files with 1107 additions and 5 deletions
+115
View File
@@ -1028,3 +1028,118 @@ code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-
.diff-add { color: var(--ok); }
.diff-remove { color: var(--bad); }
.diff-context { color: var(--muted); }
/* ---------------------------------------------------------------------------
Attention / "Needs you" surface (R15): the header bell with its conditional
badge, and the bottom sheet of everybody a run needs. Hand-written, dark
palette; the sheet is responsive and echoes the app's ModalBottomSheet.
--------------------------------------------------------------------------- */
.attention-bell {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 5px 9px;
margin-left: 6px;
background: transparent;
border-color: transparent;
line-height: 1;
}
.attention-bell-glyph { font-size: 15px; }
.attention-badge {
position: absolute;
top: -4px;
right: -4px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 999px;
background: var(--bad);
color: #1b0b0b;
font-size: 11px;
font-weight: 700;
line-height: 16px;
text-align: center;
}
.attention-sheet {
position: fixed;
inset: 0;
z-index: 30;
display: flex;
align-items: flex-end;
justify-content: center;
background: rgba(0, 0, 0, 0.55);
}
.attention-sheet-panel {
display: flex;
flex-direction: column;
width: min(560px, 100%);
max-height: 80vh;
min-width: 0;
background: var(--surface);
border: 1px solid var(--border);
border-bottom: 0;
border-radius: 14px 14px 0 0;
box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
outline: none;
}
.attention-sheet-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 12px 14px 8px;
border-bottom: 1px solid var(--border);
}
.attention-sheet-title { margin: 0; font-size: 16px; }
.attention-sheet-close { background: transparent; }
.attention-sheet-body {
flex: 1;
overflow-y: auto;
padding: 10px 14px 16px;
display: grid;
gap: 8px;
align-content: start;
}
.attention-empty { margin: 4px 0; color: var(--muted); }
.attention-clear { justify-self: start; background: transparent; color: var(--accent); border-color: transparent; padding: 4px 0; }
.attention-row {
display: flex;
align-items: center;
gap: 10px;
border: 1px solid var(--border);
border-radius: 10px;
background: var(--surface-2);
padding: 4px 4px 4px 0;
}
.attention-row-open {
flex: 1;
min-width: 0;
display: flex;
align-items: center;
gap: 10px;
text-align: left;
background: transparent;
border: 0;
border-radius: 10px;
padding: 8px 6px 8px 12px;
}
.attention-icon { font-size: 15px; flex: 0 0 auto; }
.attention-text { display: grid; gap: 2px; min-width: 0; }
.attention-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-desc { color: var(--muted); font-size: 12px; }
.attention-dismiss {
flex: 0 0 auto;
background: transparent;
border-color: transparent;
color: var(--muted);
padding: 6px 10px;
}
.attention-dismiss:hover { color: var(--text); border-color: var(--border); }
@media (max-width: 760px) {
.attention-sheet-panel { width: 100%; max-height: 88vh; }
}