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
logff62f00d9a2d14aab7a75ea68d476df2e2794094
tree31abfb753c02e5f344d967b9c364f0076a1cc7af
parentd9b295aa93ef00565b91d9caa3ec4875b94596a4
signature Signed by SSH key SHA256:52mNGHRsVFBDED9IAX5pe+LRWUefqTbxEReunq21QvU

Keep Shale provider icons from inheriting outline strokes

Assisted-by: gpt-6

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

dashboard/src/shale_page.rs+2-2
......@@ -88,8 +88,8 @@ fn rewrite(html: &str, origin: &url::Url, profiles: &HashMap<String, Profile>) -
8888 let picture = picture.replace('&', "&amp;").replace('"', "&quot;").replace('<', "&lt;");
8989 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);
9090 }
91 let icon = profile.icon.trim().replace("<svg ", "<svg aria-hidden=\"true\" focusable=\"false\" style=\"width:1em;height:1em;vertical-align:-.125em;margin-right:.3em\" ");
92 let icon = if profile.url.starts_with("https://github.com/") { icon.replace("<path ", "<path fill=\"currentColor\" ") } else { icon };
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\" ");
92 let icon = if profile.url.starts_with("https://github.com/") { icon.replace("<path ", "<path style=\"fill:currentColor;stroke:none\" ") } else { icon };
9393 element.append(&icon, ContentType::Html);
9494 element.append(&profile.name, ContentType::Text);
9595 Ok(())