diff --git a/main.go b/main.go index 7768069..7c74ced 100644 --- a/main.go +++ b/main.go @@ -487,6 +487,7 @@ func (a *apiServer) handleListPublic(w http.ResponseWriter, r *http.Request) { items = append(items, map[string]any{ "id": row.ID, "title": title, "language": lang, "created_at": row.CreatedAt, "view_count": row.ViewCount, "size": row.Size, + "custom_slug": nullStrPtr(row.CustomSlug), }) } writeJSON(w, 200, map[string]any{"total": total, "limit": limit, "offset": offset, "items": items}) diff --git a/palette b/palette index a65b2d4..663a234 100755 Binary files a/palette and b/palette differ diff --git a/web/static/app.css b/web/static/app.css index 8c210b9..29d7f97 100644 --- a/web/static/app.css +++ b/web/static/app.css @@ -296,3 +296,6 @@ td a.slug:hover { color: var(--accent); } /* paste name under slug pill in Paste column (#43) */ .paste-sub { font-size: 19.8px; color: var(--muted-fg); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .paste-sub.dim { color: var(--muted); } +td .url-link { font-size: 19.8px; } +td .id-link { color: var(--muted-fg); text-decoration: none; font-family: var(--font-mono); font-size: 19.8px; } +td .id-link:hover { color: var(--accent); } diff --git a/web/templates/history.html b/web/templates/history.html index 45c7277..47bdd38 100644 --- a/web/templates/history.html +++ b/web/templates/history.html @@ -8,8 +8,8 @@
| Paste | Language | Size | Views | Created | ||
|---|---|---|---|---|---|---|
| Paste | Language | Size | Views | Created | URL | ID |