xonecas.io
8356
Wx

www-xonecas-io / commit 9ce7eb9

topic chips share the tag chip's border, font and size (1032)

Co-Authored-By: Claude Opus 5.5

Sean Caetano Martin2026-11-08 9ce7eb9cfa8e2397cfe6ee48fe9da8c91eae3c2a parent ad47c53

3 files changed

internal/site/templates/components.html+3−3
@@ -26,8 +26,8 @@
2626 </span>
2727 {{end}}
2828
29-{{define "topic"}}{{/* a specific tag, from the project's dependencies and docs */}}
30-<span class="inline-flex items-center rounded-[2px] bg-empty px-1.5 py-px font-mono text-[12px] whitespace-nowrap">{{.}}</span>
29+{{define "topic"}}{{/* a specific tag, from the project's dependencies and docs: a tag without the marker */}}
30+<span class="inline-flex items-center border-[1.5px] border-ink rounded-[2px] px-2 py-px text-[13px] whitespace-nowrap">{{.}}</span>
3131 {{end}}
3232
3333 {{define "project-row"}}
@@ -38,7 +38,7 @@
3838 <div class="col-start-2 @3xl:col-start-auto relative h-3.5 bg-empty rounded-[2px]"><div class="absolute inset-y-0 min-w-1.5 rounded-[2px] bg-h{{.Heat}}" style="left:{{.From}}%;width:{{.Width}}%"></div></div>
3939 <b class="hidden @3xl:block text-right">{{.El.Weight}}</b>
4040 <div class="col-start-2 @3xl:col-start-auto flex flex-wrap gap-1">{{range .Tags}}{{template "tag" .}}{{end}}
41- {{range $i, $t := .Topics}}{{if lt $i 4}}{{template "topic" $t}}{{end}}{{end}}{{if gt (len .Topics) 4}}<span class="px-1 py-px font-mono text-[12px] text-soft">+{{len (slice .Topics 4)}}</span>{{end}}</div>
41+ {{range $i, $t := .Topics}}{{if lt $i 4}}{{template "topic" $t}}{{end}}{{end}}{{if gt (len .Topics) 4}}<span class="px-1 py-px text-[13px] text-soft">+{{len (slice .Topics 4)}}</span>{{end}}</div>
4242 </a></div>
4343 {{end}}
4444
tickets/1032-some-tags-look-completly-different-it-looks-bad.md+24−0
@@ -0,0 +1,24 @@
1+---
2+id: 1032
3+title: some tags look completely different, it looks bad.
4+type: bug
5+status: review
6+priority: p2
7+created: 2026-11-08T05:06:20Z
8+updated: 2026-11-08T05:11:00Z
9+source: devnote
10+area: site
11+moves: 2026-11-08T05:07:39Z inbox doing drag; 2026-11-08T05:11:00Z doing review agent
12+---
13+
14+## Context
15+
16+Filed from `http://192.168.122.10:8080/projects/irvc/`, on `span.inline-flex.items-center.rounded-[2px]`.
17+
18+> webrtc
19+
20+## Notes
21+
22+- 2026-11-08 05:06Z (agent): Triage: type bug, priority p2, area site. Fixed the typo 'completly' -> 'completely'. The clicked chip 'webrtc' is a topic from 1031. Its 'topic' component in components.html is borderless, set in mono on bg-empty, while the 6 structural tags ('tag' component) have a 1.5px ink border and use the sans font in semibold. So the two kinds look unrelated side by side on project pages and /projects rows. Related: 1031.
23+
24+- 2026-11-08 05:11Z (agent): Done: topic chips now use the same chip as the 6 tags: 1.5px ink border, 2px radius, the sans font at 13px, px-2. The only differences left are no marker square and regular weight instead of semibold, so you can still tell a topic from a structural tag. The '+N' on /projects rows uses the same sans font at 13px. The change is the 'topic' component in components.html, so the project page and the rows both pick it up. Checked in agent-browser: irvc's page in light mode …
tickets/attachments/1032/irvc- tags and topics, same chip.png+0−0
Binary file, not shown.