summaryrefslogtreecommitdiff
path: root/public/javascripts
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-13 01:57:43 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-13 01:57:43 +0200
commit65c7c40f74c315c1a39fb15da8ce341fb8b9b05e (patch)
treeadeea832d7d808b58015f8f4e7964b86ad857939 /public/javascripts
parent6730af4b33b207a7a1880cef2706e67313a7e5cd (diff)
Wavy-underline: allowlist to default; destroy-button and search polish
Flips the plain-link underline from an opt-in list (growing every time a new context needed it) to the default a rule, with opt-outs living as more specific overrides where something shouldn't look like plain content -- .action_button, the icon nav, the search dropdown's bold results. The allowlist's own history made the case for this: three of its entries were already hand-copied duplicates of the same five properties, and two of those had already silently drifted. form.button_to's icon+text buttons (Destroy, currently) get the same inline-flex/gap treatment .action_button already had -- they were never included in that fix, so they still baseline-aligned an SVG against text instead of centering it, plus an explicit icon size they'd never had either. Dashboard search results: tags render as a wrapped row of pills instead of one-per-line, for visual distinction from page results. The public-preview link and its Revoke button get their own row rather than loose inline flow, which wrapped unpredictably next to a long token URL -- aligned by box-top rather than center or baseline, since a <button> doesn't reliably expose a text baseline the way a plain link does, with a small compensating offset for the button's own internal padding.
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/admin_search.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/public/javascripts/admin_search.js b/public/javascripts/admin_search.js
index 53bcb5e..0c768a3 100644
--- a/public/javascripts/admin_search.js
+++ b/public/javascripts/admin_search.js
@@ -137,10 +137,12 @@ dashboard_search = {
137 137
138 if (data.tags.length) { 138 if (data.tags.length) {
139 results.append("<p class='search_group_label'>Tags</p>"); 139 results.append("<p class='search_group_label'>Tags</p>");
140 var tag_row = $("<div class='search_tag_row'></div>");
140 data.tags.forEach(function(tag) { 141 data.tags.forEach(function(tag) {
141 results.append("<p><a href='" + tag.tag_path + "'>" + tag.name + "</a></p>"); 142 tag_row.append("<a class='search_tag_pill' href='" + tag.tag_path + "'>" + tag.name + "</a>");
142 found = true; 143 found = true;
143 }); 144 });
145 results.append(tag_row);
144 } 146 }
145 147
146 if (data.nodes.length) { 148 if (data.nodes.length) {