Skip to content

Commit

Permalink
user tooltips and names
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxn committed Nov 1, 2023
1 parent 3ddd464 commit 82a0399
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/ListItem/Common.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ export function PersonMetaLine({ creator, by = false, sx }) {
<Typography component="span" sx={{ mr: 0.25 }}>
{creator.name}
</Typography>
<Typography component="span">@{creator.actor_id.split("/")[2]}</Typography>
{baseUrl != actorInstanceBaseUrl && (
<Typography component="span">@{creator.actor_id.split("/")[2]}</Typography>
)}
</Link>
</Tooltip>
</Box>
Expand Down
5 changes: 4 additions & 1 deletion src/components/Tooltip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export const UserTooltip = ({ user, ...props }) => {
>
<Box sx={{ display: "flex", flexDirection: "column", maxWidth: 320, justifyContent: "center", p: 1 }}>
<Typography fontSize="lg" gutterBottom>
@{user.name} {user.display_name && ` ${user.display_name}`}
<Typography component="span">
{user.name}@{user.actor_id.split("/")[2]}
</Typography>{" "}
{user.display_name && ` ${user.display_name}`}
</Typography>

{user.published && (
Expand Down

0 comments on commit 82a0399

Please sign in to comment.