fix(web): more consistent link hovering

This commit is contained in:
əlemi 2024-04-17 05:59:10 +02:00
parent a2715d2978
commit b0ffc6187f
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 6 additions and 3 deletions

View file

@ -63,6 +63,9 @@
a.upub-title:hover {
text-decoration: underline;
}
a.hover {
text-decoration: none;
}
a.hover:hover {
text-decoration: underline;
}

View file

@ -182,11 +182,11 @@ pub fn ActorBanner(object: serde_json::Value) -> impl IntoView {
<div>
<table class="align" >
<tr>
<td rowspan="2" ><img class="avatar-circle" src={avatar_url} /></td>
<td rowspan="2" ><a href={uri.clone()} ><img class="avatar-circle" src={avatar_url} /></a></td>
<td><b>{display_name}</b></td>
</tr>
<tr>
<td class="top" ><a class="clean" href={uri} ><small>{username}@{domain}</small></a></td>
<td class="top" ><a class="hover" href={uri} ><small>{username}@{domain}</small></a></td>
</tr>
</table>
</div>
@ -352,7 +352,7 @@ pub fn InlineActivity(activity: serde_json::Value) -> impl IntoView {
</tr>
<tr>
<td class="rev">
<a class="clean hover" href={Uri::web("objects", &object_id)} >
<a class="hover" href={Uri::web("objects", &object_id)} >
<small>{Uri::pretty(&object_id)}</small>
</a>
</td>