oficina / docs Public

Docs: an empty state is heading and text on the page, no dashed box

Paul, about "No documents yet": "Can we get rid of these dotted line
views? I don't think they add anything." A dashed outline reads as a
place to drop a file, and nothing in the empty list accepts one.

The box comes from rastrillo's tokens.css, which Docs serves from the
module (ui.TokensCSS in render.go). Rastrillo v0.38.0, on its branch
empty-state-no-box, takes Fiesta 1.5.0, which drops it. Docs cannot
take that release yet: it is pinned at v0.29.2, and rastrillo moved to
chromedp v0.21 after that. The go.mod bump compiles, but the browser
tests do not (fonts, carry, resync, colophon and zoom use the old
chromedp API, and `go vet -tags browser` fails on them), and porting
them is its own piece of work.

So this adds one rule to list.html's own style block that removes the
box, with a note to delete it when the pin reaches v0.38.0. The words
and markup are untouched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7f040e7e2e29d94fdbaf26fae8a9a61a94554165 parent 7de2d40
1 file changed, +8 −0
  • internal/docs/views/list.html +8 −0

CI passed — run details

diff --git a/internal/docs/views/list.html b/internal/docs/views/list.html
index a7b1afc..d06a183 100644
--- a/internal/docs/views/list.html
+++ b/internal/docs/views/list.html
@@ -79,6 +79,14 @@
{{if .SharedNote}}<span rst-muted docs-row-shared>{{.SharedNote}}</span>{{end}}<span docs-row-when>{{.When}}</span>
</div>{{end}}
{{define "content"}}<style>
+ /* An empty state is its heading and text on the page, with no dashed
+ box: rastrillo v0.38.0 (Fiesta 1.5.0) draws it so. Docs is pinned
+ before the chromedp 0.21 port that release needs, so it says so
+ here. Delete this rule when the pin reaches v0.38.0. */
+ [rst-empty] {
+ background: transparent;
+ border: none;
+ }
/* The desk. The list is the person's documents laid out as the paper
they are, so the page under them is a desk rather than a form: the
suite's background, lit from above by a wash of Docs' own hue (the