| ... | ... | @@ -278,7 +278,7 @@ fn rewrite(html: &str, origin: &url::Url, profiles: &HashMap<String, Profile>, a |
| 278 | 278 | element.prepend(&avatar(picture), ContentType::Html); |
| 279 | 279 | } |
| 280 | 280 | if profile.owner.is_some() { element.append("<span class=\"va-middle-childs\" style=\"white-space:nowrap\">", ContentType::Html); } |
| 281 | | let dimensions = if ai_profile.is_some() || profile.owner.is_some() { "width:1em;height:1em;margin-right:.25em" } else { "width:.85em;height:.85em;flex-shrink:0" }; |
| 281 | let dimensions = if ai_profile.is_some() || profile.owner.is_some() { "width:1em;height:1em;margin-right:.25em" } else { "width:.85em;height:.85em;margin-left:.25em;flex-shrink:0" }; |
| 282 | 282 | let icon = profile.icon.trim().replace("<svg ", &format!("<svg aria-hidden=\"true\" focusable=\"false\" style=\"color:inherit;stroke:currentColor;{dimensions}\" ")); |
| 283 | 283 | let icon = if profile.url.is_some() { icon.replace("<path ", "<path style=\"fill:currentColor;stroke:none\" ") } else { icon }; |
| 284 | 284 | element.append(&icon, ContentType::Html); |