mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 15:10:57 -05:00
fix: properly align emoji name in autocompletion
This commit is contained in:
parent
35fb6b4381
commit
0f0d41615b
1 changed files with 8 additions and 3 deletions
|
@ -432,7 +432,12 @@ export default function AutoComplete({
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
onClick={onClick}>
|
onClick={onClick}>
|
||||||
<div>
|
<div
|
||||||
|
style={{
|
||||||
|
display: "flex",
|
||||||
|
flexDirection: "row",
|
||||||
|
justifyContent: "center",
|
||||||
|
}}>
|
||||||
{match instanceof CustomEmoji ? (
|
{match instanceof CustomEmoji ? (
|
||||||
<img
|
<img
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
@ -455,11 +460,11 @@ export default function AutoComplete({
|
||||||
size={20}
|
size={20}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{`:${
|
<span style={{ paddingLeft: "4px" }}>{`:${
|
||||||
match instanceof CustomEmoji
|
match instanceof CustomEmoji
|
||||||
? match.name
|
? match.name
|
||||||
: match
|
: match
|
||||||
}:`}
|
}:`}</span>
|
||||||
</div>
|
</div>
|
||||||
{match instanceof CustomEmoji &&
|
{match instanceof CustomEmoji &&
|
||||||
match.parent.type == "Server" && (
|
match.parent.type == "Server" && (
|
||||||
|
|
Loading…
Reference in a new issue