diff options
author | Ivan Chen <ivan@tagg.id> | 2021-07-09 15:23:12 -0400 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-07-09 15:56:47 -0400 |
commit | aa25df7dbd192394f2d6d42ed07d1e1f43cc07f0 (patch) | |
tree | 3adc569211d931a561b15722f4d648ba198b60fd /src/utils/comments.tsx | |
parent | 74d0ad5bab6f0d058fc03095fa0a313499162579 (diff) |
Fix mention box position, Fix image flickering
Diffstat (limited to 'src/utils/comments.tsx')
-rw-r--r-- | src/utils/comments.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/utils/comments.tsx b/src/utils/comments.tsx index 28879622..504631f5 100644 --- a/src/utils/comments.tsx +++ b/src/utils/comments.tsx @@ -82,12 +82,17 @@ export const renderTextWithMentions: React.FC<RenderProps> = ({ export const mentionPartTypes: ( theme: 'blue' | 'white', component: 'caption' | 'comment', -) => PartType[] = (theme, component) => { + isShowBelowStyle?: boolean, +) => PartType[] = (theme, component, isShowBelowStyle = false) => { return [ { trigger: '@', renderSuggestions: (props) => ( - <TaggTypeahead component={component} {...props} /> + <TaggTypeahead + component={component} + isShowBelowStyle={isShowBelowStyle} + {...props} + /> ), allowedSpacesCount: 0, isInsertSpaceAfterMention: true, |