diff options
Diffstat (limited to 'claude_logbook/template.html')
| -rw-r--r-- | claude_logbook/template.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/claude_logbook/template.html b/claude_logbook/template.html index c018320..20dfbee 100644 --- a/claude_logbook/template.html +++ b/claude_logbook/template.html @@ -509,6 +509,23 @@ } .tool b { color: var(--amber); font-weight: 500; flex-shrink: 0; } + .compact { margin: 6px 0; } + .compact summary { + font-family: var(--mono); + font-size: 11.5px; + color: var(--muted); + cursor: pointer; + text-align: center; + padding: 6px 0; + border-top: 1px dashed var(--line); + border-bottom: 1px dashed var(--line); + list-style: none; + } + .compact summary::-webkit-details-marker { display: none; } + .compact summary::before { content: '▸ '; } + .compact[open] summary::before { content: '▾ '; } + .compact .bubble { margin-top: 8px; font-size: 13.5px; } + .reader-empty { color: var(--muted); font-family: var(--mono); font-size: 13px; text-align: center; padding: 60px 20px; } /* ---------- toast ---------- */ @@ -1170,6 +1187,8 @@ function openChat(id) { bodyEl.innerHTML = d.c.length ? d.c.map(m => m.r === 't' ? `<div class="tool"><b>⚒</b><span>${esc(m.x)}</span></div>` + : m.r === 'c' + ? `<details class="compact"><summary>Context compacted here · the summary Claude kept</summary><div class="bubble">${renderBody(m.x)}</div></details>` : `<div class="turn turn-${m.r}"><span class="who">${WHO[m.r]}</span><div class="bubble">${renderBody(m.x)}</div></div>` ).join('') : `<p class="reader-empty">This session has no messages.</p>`; |