feat(web): Allow clicking on node avatars

Previously the node name was always a link and the node avatar did
nothing. We believe it's slightly nicer to include the avatar in the
link.
This commit is contained in:
Samuel Shuert
2024-11-18 08:51:19 +01:00
committed by Sebastian Martinez
parent f815b2dbca
commit d37ccde1c4
+5 -2
View File
@@ -26,8 +26,11 @@
</style>
<div class="avatar-alias">
<Avatar variant="small" {nodeId} />
<Link styleHoverState route={{ resource: "users", did: nodeId, baseUrl }}>
<Link
styleHoverState
style="display: flex; gap: 5px; align-items: center;"
route={{ resource: "users", did: nodeId, baseUrl }}>
<Avatar variant="small" {nodeId} />
{#if alias}
<span class="txt-overflow">
{alias}