From ee17ffcfb2ee4148ebe34ccccf6827da8f85917e Mon Sep 17 00:00:00 2001 From: Javier Sagredo Date: Thu, 7 May 2026 01:16:52 +0200 Subject: [PATCH] Move Focus chips and Mark-orphans toggle to the side panel MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The topbar got cramped between the title, focus chips, orphan toggle, and the search input. Moves these two pieces — the focus chips block and the orphan-marker checkbox — into the side panel, restyled as panel blocks with consistent borders. The topbar keeps just back, title, and search. Co-Authored-By: Claude Opus 4.7 (1M context) --- data/viewer.css | 18 +++++++++++++----- data/viewer.html | 18 +++++++++--------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/data/viewer.css b/data/viewer.css index f575c55..69ead97 100644 --- a/data/viewer.css +++ b/data/viewer.css @@ -202,14 +202,19 @@ body { display: flex; } #back-button[hidden] { display: none; } #orphan-toggle-wrap { - display: inline-flex; + display: flex; align-items: center; - gap: 4px; - font-size: 11px; + gap: 6px; + margin: 0 0 12px; + padding: 8px 12px; + font-size: 12px; color: #6b7280; user-select: none; cursor: pointer; white-space: nowrap; + background: #fff; + border: 1px solid #e5e7eb; + border-radius: 6px; } #orphan-toggle-wrap input { margin: 0; } @@ -218,8 +223,11 @@ body { display: flex; } align-items: center; flex-wrap: wrap; gap: 6px; - flex: 1 1 auto; - min-width: 0; + margin: 0 0 12px; + padding: 8px 12px; + background: #eff6ff; + border: 1px solid #bfdbfe; + border-radius: 6px; } #pin-chips[hidden] { display: none; } #pin-label { diff --git a/data/viewer.html b/data/viewer.html index 5240767..d1e90d6 100644 --- a/data/viewer.html +++ b/data/viewer.html @@ -11,15 +11,6 @@

classgraph

- -
@@ -74,6 +65,15 @@ + +
Editor link

Make every Defined at line in the right-hand panel a clickable link that jumps to the file at the right line in your editor.

-- 2.54.0