Skip to content

Commit d37ccde

Browse files
TheCodedProfsebastinez
authored andcommitted
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.
1 parent f815b2d commit d37ccde

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/NodeId.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@
2626
</style>
2727

2828
<div class="avatar-alias">
29-
<Avatar variant="small" {nodeId} />
30-
<Link styleHoverState route={{ resource: "users", did: nodeId, baseUrl }}>
29+
<Link
30+
styleHoverState
31+
style="display: flex; gap: 5px; align-items: center;"
32+
route={{ resource: "users", did: nodeId, baseUrl }}>
33+
<Avatar variant="small" {nodeId} />
3134
{#if alias}
3235
<span class="txt-overflow">
3336
{alias}

0 commit comments

Comments
 (0)