mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 07:00:58 -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}>
|
||||
<div>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "row",
|
||||
justifyContent: "center",
|
||||
}}>
|
||||
{match instanceof CustomEmoji ? (
|
||||
<img
|
||||
loading="lazy"
|
||||
|
@ -455,11 +460,11 @@ export default function AutoComplete({
|
|||
size={20}
|
||||
/>
|
||||
)}
|
||||
{`:${
|
||||
<span style={{ paddingLeft: "4px" }}>{`:${
|
||||
match instanceof CustomEmoji
|
||||
? match.name
|
||||
: match
|
||||
}:`}
|
||||
}:`}</span>
|
||||
</div>
|
||||
{match instanceof CustomEmoji &&
|
||||
match.parent.type == "Server" && (
|
||||
|
|
Loading…
Reference in a new issue