Skip to content

Commit

Permalink
feat: fix vertical alignment of cursor next to emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek committed Jun 20, 2024
1 parent 18770e8 commit df321be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/parserUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function addStyling(targetElement: HTMLElement, type: MarkdownType, markdownStyl
node.style.textDecoration = 'line-through';
break;
case 'emoji':
Object.assign(node.style, markdownStyle.emoji);
Object.assign(node.style, {...markdownStyle.emoji, verticalAlign: 'middle', lineHeight: 'normal'});
break;
case 'mention-here':
Object.assign(node.style, markdownStyle.mentionHere);
Expand Down

0 comments on commit df321be

Please sign in to comment.