mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-24 16:10:59 -05:00
fix: copy full username from user profile
This commit is contained in:
parent
cf691a8462
commit
449eee006d
2 changed files with 15 additions and 2 deletions
|
@ -58,8 +58,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.username {
|
.username {
|
||||||
|
display: block;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
width: fit-content;
|
||||||
color: var(--secondary-foreground);
|
color: var(--secondary-foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -174,9 +174,20 @@ export const UserProfile = observer(
|
||||||
<span
|
<span
|
||||||
className={styles.username}
|
className={styles.username}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
modalController.writeText(user.username)
|
modalController.writeText(
|
||||||
|
user.username +
|
||||||
|
"#" +
|
||||||
|
user.discriminator,
|
||||||
|
)
|
||||||
|
}>
|
||||||
|
<Localizer>
|
||||||
|
<Tooltip
|
||||||
|
content={
|
||||||
|
<Text id="app.special.copy_username" />
|
||||||
}>
|
}>
|
||||||
{user.username}#{user.discriminator}
|
{user.username}#{user.discriminator}
|
||||||
|
</Tooltip>
|
||||||
|
</Localizer>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{user.status?.text && (
|
{user.status?.text && (
|
||||||
|
|
Loading…
Reference in a new issue