Skip to content

Commit

Permalink
feat(quill): styling touchup
Browse files Browse the repository at this point in the history
  • Loading branch information
phatv committed Jan 30, 2020
1 parent 9dda99f commit 3c49eae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/components/ComposerQuill/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.ql-container {
.ql-editor {
&:focus {
box-shadow: none;
}
}

.ql-mention-list-container {
max-height: 220px;
overflow-y: auto;
Expand Down
4 changes: 3 additions & 1 deletion src/components/MessageComposer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ const MessageComposer = ({
const toolbarDom = <Toolbar emitter={emitter.current} active={active} disabled={disabled} />;

const containerClasses = classnames('message-composer-container', {disabled});
let composerClasses = 'composer';

let Composer;

switch (composerType) {
default:
case 'slate': {
Composer = SlateComposer;
composerClasses += ' slate';
break;
}
case 'quill': {
Expand All @@ -79,7 +81,7 @@ const MessageComposer = ({
{toolbarDom}
</div>
{/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */}
<div className="composer" onClick={focus}>
<div className={composerClasses} onClick={focus}>
<Composer
send={send}
markdown={markdown}
Expand Down

0 comments on commit 3c49eae

Please sign in to comment.