mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 18:15:28 +00:00
fix: properly align emoji name in autocompletion
This commit is contained in:
@@ -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" && (
|
||||||
|
|||||||
Reference in New Issue
Block a user