]> Untitled Git - lemmy-ui.git/commitdiff
Centering emojimart in view.
authorDessalines <tyhou13@gmx.com>
Wed, 21 Jun 2023 18:44:37 +0000 (14:44 -0400)
committerDessalines <tyhou13@gmx.com>
Wed, 21 Jun 2023 18:44:37 +0000 (14:44 -0400)
src/shared/components/common/emoji-picker.tsx

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