authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-10-05 00:19:46-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-10-05 15:36:02-07:00
log6deaa7ac61e116c12b17eda9d98119a6b860062a
treeb5327ed7b0b31a4ae73fe34f5baaa8d487e5319f
parentff62f00d9a2d14aab7a75ea68d476df2e2794094
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU

Tuck Shale provider icons into the username

Assisted-by: gpt-6

1 files changed, 1 insertions(+), 1 deletions(-)

dashboard/src/shale_page.rs+1-1
...@@ -88,7 +88,7 @@ fn rewrite(html: &str, origin: &url::Url, profiles: &HashMap<String, Profile>) -...@@ -88,7 +88,7 @@ fn rewrite(html: &str, origin: &url::Url, profiles: &HashMap<String, Profile>) -
88 let picture = picture.replace('&', "&amp;").replace('"', "&quot;").replace('<', "&lt;");88 let picture = picture.replace('&', "&amp;").replace('"', "&quot;").replace('<', "&lt;");
89 element.prepend(&format!("<img src=\"{picture}\" alt=\"\" width=\"16\" height=\"16\" referrerpolicy=\"no-referrer\" style=\"width:1em;height:1em;object-fit:cover;vertical-align:-.125em;margin-right:.3em\">"), ContentType::Html);89 element.prepend(&format!("<img src=\"{picture}\" alt=\"\" width=\"16\" height=\"16\" referrerpolicy=\"no-referrer\" style=\"width:1em;height:1em;object-fit:cover;vertical-align:-.125em;margin-right:.3em\">"), ContentType::Html);
90 }90 }
91 let icon = profile.icon.trim().replace("<svg ", "<svg aria-hidden=\"true\" focusable=\"false\" style=\"color:inherit;width:1em;height:1em;vertical-align:-.125em;margin-right:.3em\" ");91 let icon = profile.icon.trim().replace("<svg ", "<svg aria-hidden=\"true\" focusable=\"false\" style=\"color:inherit;width:.85em;height:.85em;vertical-align:-.1em;margin-right:.15em\" ");
92 let icon = if profile.url.starts_with("https://github.com/") { icon.replace("<path ", "<path style=\"fill:currentColor;stroke:none\" ") } else { icon };92 let icon = if profile.url.starts_with("https://github.com/") { icon.replace("<path ", "<path style=\"fill:currentColor;stroke:none\" ") } else { icon };
93 element.append(&icon, ContentType::Html);93 element.append(&icon, ContentType::Html);
94 element.append(&profile.name, ContentType::Text);94 element.append(&profile.name, ContentType::Text);