From fbc4b7249b5f9a14292cf527a55e057ecf5bbaba Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 3 Sep 2026 12:30:49 +0100 Subject: [PATCH] Drop the redundant source column in the artifact list when a source is selected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a single source is selected, every row in the middle sidebar repeats that same source, so the source column is pure waste — the pane header already names the source. The column now only shows under "All sources" (where it's needed to tell rows apart); selecting a source hides it and gives the width back to the artifact title. Also drops the now-dangling row-main border-right in that state. Co-Authored-By: Claude Opus 4.8 --- static/daybook.css | 15 +++++++++++++++ templates/artifacts/feed.html | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/static/daybook.css b/static/daybook.css index c23e84a..e5239fe 100644 --- a/static/daybook.css +++ b/static/daybook.css @@ -556,6 +556,21 @@ h1 { padding: 0; } +/* When a single source is selected, the per-row source column is redundant + (every row has the same source), so drop it and give the space back to the + title. Shown only under "All sources". */ +.artifact-list.no-source-col .artifact-row { + grid-template-columns: 3.15rem minmax(0, 1fr); +} + +.artifact-list.no-source-col .artifact-source { + display: none; +} + +.artifact-list.no-source-col .artifact-row-main { + border-right: 0; +} + .artifact-row:hover { background: var(--row-hover); box-shadow: none; diff --git a/templates/artifacts/feed.html b/templates/artifacts/feed.html index 7b4287a..713a065 100644 --- a/templates/artifacts/feed.html +++ b/templates/artifacts/feed.html @@ -53,7 +53,7 @@ {{ artifacts|length }} artifact{{ artifacts|length|pluralize }} -
+
{% if day_groups %} {% include "artifacts/_day_groups.html" with has_more=older_count next_before=window_start|date:"Y-m-d" %} {% else %}