fix: copy full username from user profile

This commit is contained in:
Paul Makles 2023-06-11 22:26:56 +01:00
parent cf691a8462
commit 449eee006d
No known key found for this signature in database
GPG key ID: 5059F398521BB0F6
2 changed files with 15 additions and 2 deletions

View file

@ -58,8 +58,10 @@
}
.username {
display: block;
font-size: 13px;
font-weight: 600;
width: fit-content;
color: var(--secondary-foreground);
}

View file

@ -174,9 +174,20 @@ export const UserProfile = observer(
<span
className={styles.username}
onClick={() =>
modalController.writeText(user.username)
modalController.writeText(
user.username +
"#" +
user.discriminator,
)
}>
<Localizer>
<Tooltip
content={
<Text id="app.special.copy_username" />
}>
{user.username}#{user.discriminator}
</Tooltip>
</Localizer>
</span>
</div>
{user.status?.text && (