From eaa6dc04d05ad24dea5a7b211928cddb6db5aa73 Mon Sep 17 00:00:00 2001 From: grm Date: Thu, 17 Sep 2026 21:47:37 +0300 Subject: Add a colons kind to the rule under titles, and stop its label wrapping The design form's hint on "Rule under titles" wrapped to three lines and pushed the select below its neighbours; it is a note under the row now. "Colons" is a row of ":" (a long string in an ::after, clipped to the title's width), the look of the reference site's dotted borders in text. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A --- internal/web/web_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/web/web_test.go') diff --git a/internal/web/web_test.go b/internal/web/web_test.go index 205e42f..c0a68c5 100644 --- a/internal/web/web_test.go +++ b/internal/web/web_test.go @@ -144,6 +144,9 @@ func TestTitleRuleAndTagHash(t *testing.T) { if th.TitleRuleClass() != "titles-dots" || !th.TagHash || !strings.Contains(th.CSS(), ".page-title, .post-title { border-color:#b03a48; }") { t.Errorf("from form: %+v\n%s", th, th.CSS()) } + if th = ThemeFromForm(th, url.Values{"title_rule": {"colons"}}); th.TitleRuleClass() != "titles-colons" { + t.Errorf("colons: %+v", th) + } th = ThemeFromForm(th, url.Values{"title_rule": {"neon"}}) if th.TitleRuleClass() != "" || th.TagHash { t.Errorf("junk rule falls back, unticked box is off: %+v", th) -- cgit v1.2.3