diff --git a/dashboard/src/shale_page.rs b/dashboard/src/shale_page.rs index 4ce784ad049794418fcbe74dcc0ecddd5fa7888e..cfc5c63249a120fc9ac6d4c70e8686d7f194c70a 100644 --- a/dashboard/src/shale_page.rs +++ b/dashboard/src/shale_page.rs @@ -84,11 +84,13 @@ fn rewrite(html: &str, origin: &url::Url, profiles: &HashMap) - element.set_attribute("href", &profile.url)?; element.set_attribute("target", "_blank")?; element.set_attribute("rel", "noreferrer")?; + let style = element.get_attribute("style").unwrap_or_default(); + element.set_attribute("style", &format!("{style};text-decoration-line:underline;text-decoration-color:currentColor"))?; if let Some(picture) = &profile.picture { let picture = picture.replace('&', "&").replace('"', """).replace('<', "<"); element.prepend(&format!("\"\""), ContentType::Html); } - let icon = profile.icon.trim().replace("