The statistics pages leave the paper clip off: their markers need the room

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 20:24:28 +01:00
1 parent 9f164b4d61
commit 17c6d0a1d3
1 file changed
+2 -1
+2 -1
View File
@@ -240,7 +240,8 @@ std::string App::notebook_shell(const std::function<bool(const std::string &)> &
page_title_ = heading; page_hint_.clear();
out += "<div class=\"nb-heading\"><small>" + esc(notebook_upper(kicker)) + "\x02H\x02</small><strong>\x02T\x02</strong></div><div class=\"nb-head\">" + head + "</div>";
// a paper clip at the top edge, a pencil in its loop at the right edge
out += "<div class=\"nb-clip\">" + svg("nb-clip", 30, 72, "<g fill=\"none\" stroke-linecap=\"round\"><rect x=\"4\" y=\"4\" width=\"22\" height=\"64\" rx=\"11\" stroke=\"#a19786\" stroke-width=\"3\"/><rect x=\"9\" y=\"18\" width=\"12\" height=\"42\" rx=\"6\" stroke=\"#c0b6a5\" stroke-width=\"3\"/></g>", 240) + "</div>";
// (the statistics have so many markers that the clip would lie on one of them: it is left off there)
if (active != "records") out += "<div class=\"nb-clip\">" + svg("nb-clip", 30, 72, "<g fill=\"none\" stroke-linecap=\"round\"><rect x=\"4\" y=\"4\" width=\"22\" height=\"64\" rx=\"11\" stroke=\"#a19786\" stroke-width=\"3\"/><rect x=\"9\" y=\"18\" width=\"12\" height=\"42\" rx=\"6\" stroke=\"#c0b6a5\" stroke-width=\"3\"/></g>", 240) + "</div>";
out += "<div class=\"nb-pencil\">" + svg("nb-pencil", 16, 430,
"<defs><linearGradient id=\"e\" x1=\"0\" x2=\"1\" y1=\"0\" y2=\"0\"><stop offset=\"0\" stop-color=\"#f6a06b\"/><stop offset=\".45\" stop-color=\"#ffc6a5\"/><stop offset=\"1\" stop-color=\"#d67f48\"/></linearGradient>"
"<linearGradient id=\"m\" x1=\"0\" x2=\"1\" y1=\"0\" y2=\"0\"><stop offset=\"0\" stop-color=\"#a19786\"/><stop offset=\".45\" stop-color=\"#eee7db\"/><stop offset=\"1\" stop-color=\"#82796a\"/></linearGradient></defs>"