From c9f556a6d329117673adfc8a9237b6b81b9ade72 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 30 Oct 2026 19:14:00 +0100 Subject: dashboard: add document view --- src/api/dashboard/dashboard.html | 88 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 83 insertions(+), 5 deletions(-) (limited to 'src/api/dashboard/dashboard.html') diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html index a5181ca..dd0c3cc 100644 --- a/src/api/dashboard/dashboard.html +++ b/src/api/dashboard/dashboard.html @@ -32,12 +32,12 @@ the figures (the rest) on the right. */ main { flex: 1; min-height: 0; display: grid; gap: 16px; padding: 16px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); - grid-template-rows: auto minmax(0, 1fr); - grid-template-areas: "map peers" "map figures"; } + grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr); + grid-template-areas: "map peers" "map figures" "map document"; } @media (max-width: 900px) { body { height: auto; } - main { grid-template-columns: minmax(0, 1fr); grid-template-rows: 70vh auto 70vh; - grid-template-areas: "map" "peers" "figures"; } + main { grid-template-columns: minmax(0, 1fr); grid-template-rows: 70vh auto 70vh 70vh; + grid-template-areas: "map" "peers" "figures" "document"; } } section { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; min-width: 0; min-height: 0; display: flex; flex-direction: column; } @@ -47,6 +47,7 @@ #map { grid-area: map; } #peers-box { grid-area: peers; } #figures-box { grid-area: figures; } + #document-box { grid-area: document; } svg { flex: 1; min-height: 0; width: 100%; display: block; cursor: default; } svg circle { cursor: pointer; } .legend { color: var(--muted); font-size: 12px; display: flex; gap: 1em; flex-wrap: wrap; @@ -67,7 +68,13 @@ .legend .node.focus::before { width: 14px; height: 14px; background: none; border: 2px solid var(--self); opacity: .5; } .scroll { overflow: auto; min-height: 0; } - #figures-box .scroll { flex: 1; } + #figures-box .scroll, #document-box .scroll { flex: 1; } + h2 button { float: right; font: inherit; text-transform: none; letter-spacing: 0; + color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 4px; + padding: 0 6px; cursor: pointer; } + .tree pre { margin: 2px 0 4px 1em; white-space: pre-wrap; word-break: break-all; + max-height: 20em; overflow: auto; } + .note { color: var(--muted); font-style: italic; } table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; } th, td { text-align: left; padding: 3px 8px 3px 0; border-bottom: 1px solid var(--line); white-space: nowrap; } @@ -110,6 +117,10 @@

Figures

+
+

Document

+
+