From 94c8de3485aea3a0e9ba4ab52727186ad825cf07 Mon Sep 17 00:00:00 2001 From: Florian Hertnagel Date: Fri, 13 Mar 2026 13:50:58 +0100 Subject: [PATCH 1/2] Fix index button staying highlighted on transcript pages The .index-link CSS class gave the Index button the same blue background as .current, making it appear active on every page. Remove the class and its styling so only the actual current page is highlighted. Co-Authored-By: Claude Opus 4.6 --- src/claude_code_transcripts/__init__.py | 1 - src/claude_code_transcripts/templates/macros.html | 4 ++-- .../TestGenerateHtml.test_generates_index_html.html | 1 - .../TestGenerateHtml.test_generates_page_001_html.html | 5 ++--- .../TestGenerateHtml.test_generates_page_002_html.html | 5 ++--- .../TestParseSessionFile.test_jsonl_generates_html.html | 1 - tests/test_generate_html.py | 9 +++++++++ 7 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/claude_code_transcripts/__init__.py b/src/claude_code_transcripts/__init__.py index e4854a3..59ff1f9 100644 --- a/src/claude_code_transcripts/__init__.py +++ b/src/claude_code_transcripts/__init__.py @@ -1062,7 +1062,6 @@ def render_message(log_type, message_json, timestamp): .pagination a:hover { background: var(--user-bg); } .pagination .current { background: var(--user-border); color: white; } .pagination .disabled { color: var(--text-muted); border: 1px solid #ddd; } -.pagination .index-link { background: var(--user-border); color: white; } details.continuation { margin-bottom: 16px; } details.continuation summary { cursor: pointer; padding: 12px 16px; background: var(--user-bg); border-left: 4px solid var(--user-border); border-radius: 12px; font-weight: 500; color: var(--text-muted); } details.continuation summary:hover { background: rgba(25, 118, 210, 0.15); } diff --git a/src/claude_code_transcripts/templates/macros.html b/src/claude_code_transcripts/templates/macros.html index 06018d3..1824297 100644 --- a/src/claude_code_transcripts/templates/macros.html +++ b/src/claude_code_transcripts/templates/macros.html @@ -1,10 +1,10 @@ {# Pagination for regular pages #} {% macro pagination(current_page, total_pages) %} {% if total_pages <= 1 %} - + {%- else %}