Sign in to edit tickets from this page.

← all tickets · home

Improve CSS spacing and typography hierarchy in HTML UI

resolved 6438ac5b-4854-41ae-a59b-e79046878fa4

created_at
2026-04-24
updated_at
2026-04-24
code_context
src/html.rs:145-225
priority
P2
ticket_type
design
labels
css, typography, spacing
resolved_at
2026-04-24
resolution
accepted

Body

Tighten up visual hierarchy and readability in the base CSS by addressing spacing and font sizing.

Spacing (.sub, .op-form label, table cells)

Current:

Fix: Add 20–30% more breathing room where content density makes readability hard (forms, tables, dense lists). Examples:

Typography hierarchy (h1 vs h2, line-height, font-weight)

Current:

Fix: Create clearer visual separation:

Goal: A table of tickets should show h2 headlines visually distinct from surrounding text, and forms should have more vertical room for the eye to parse labels and inputs.

Proposed resolution

Applied per spec; six surgical edits inside the existing <style> block of base_with_class in src/html.rs. No new selectors, no structural changes, no color changes, no CSS added outside the named adjustments.

Specific changes (selector → before → after)

Spacing:

Typography:

Receipts

Commits on main, pushed to gitlab:

Tests (merged main):

Deploy: bash k8s/deploy.sh clean; pod chukwa-59bdbdf6d7-6z6fp Running 1/1.

Production verification (curling deployed HTML):

Scope note worth flagging

The /w/:slug/... pages introduced in the web-UI viewer ticket (05b23288) use src/render.rs::wrap_document's OWN inline stylesheet, not html.rs::base_with_class. So this ticket's adjustments apply to /dashboard, /tickets, and any other page routed through base_with_class, but NOT to the world/turn/entity viewer pages. The spec scoped itself to src/html.rs:145-225 so I believe that's intentional, but if you wanted the polish to also land on the viewer pages it's a small follow-up — mirror the six edits into render.rs's stylesheet.

What was NOT changed per spec discipline

Per standing guidance I am not confirming this ticket — only proposing. Over to you.

History (4 events)

Sign in as a human to drive this ticket from the page, or use the MCP tools.