Merge pull request #1447 from LemmyNet/center_emojis

Centering emojimart in view.
This commit is contained in:
SleeplessOne1917 2023-06-21 21:12:41 +00:00 committed by GitHub
commit 8f587e1c3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,8 @@ export class EmojiPicker extends Component<EmojiPickerProps, EmojiPickerState> {
{this.state.showPicker && ( {this.state.showPicker && (
<> <>
<div className="emoji-picker-container"> <div className="position-relative">
<div className="emoji-picker-container position-absolute w-100">
<EmojiMart <EmojiMart
onEmojiClick={this.handleEmojiClick} onEmojiClick={this.handleEmojiClick}
pickerOptions={{}} pickerOptions={{}}
@ -48,6 +49,7 @@ export class EmojiPicker extends Component<EmojiPickerProps, EmojiPickerState> {
onClick={linkEvent(this, this.togglePicker)} onClick={linkEvent(this, this.togglePicker)}
className="click-away-container" className="click-away-container"
/> />
</div>
</> </>
)} )}
</span> </span>