From d4c8c187fde4999d0573ed1d7cef7baf302285f1 Mon Sep 17 00:00:00 2001 From: Ginger Wong Date: Sun, 23 Aug 2020 19:37:06 -0700 Subject: [PATCH] fix some styles --- webroot/index2.html | 4 --- webroot/js/components/chat/chat-input.js | 7 +++-- webroot/js/standalone-chat-app.js | 35 ++++-------------------- webroot/js/utils/constants.js | 2 +- webroot/standalone-chat.html | 6 +--- webroot/styles/app.css | 7 ++++- webroot/styles/chat.css | 2 +- 7 files changed, 19 insertions(+), 44 deletions(-) diff --git a/webroot/index2.html b/webroot/index2.html index babc44c3f..a751cacfb 100644 --- a/webroot/index2.html +++ b/webroot/index2.html @@ -1,10 +1,6 @@ diff --git a/webroot/js/components/chat/chat-input.js b/webroot/js/components/chat/chat-input.js index fd472626b..0ba1e1cc1 100644 --- a/webroot/js/components/chat/chat-input.js +++ b/webroot/js/components/chat/chat-input.js @@ -62,8 +62,9 @@ export default class ChatInput extends Component { initialCategory: 'custom', showPreview: false, emojiSize: '30px', - emojisPerRow: 6, - position: 'top' + // emojisPerRow: 6, + position: 'right-start', + strategy: 'absolute', }); this.emojiPicker.on('emoji', emoji => { this.handleEmojiSelected(emoji); @@ -260,10 +261,12 @@ export default class ChatInput extends Component { type="button" style=${emojiButtonStyle} onclick=${this.handleEmojiButtonClick} + disabled=${!inputEnabled} >😏