Skip to content

Commit

Permalink
Fix emoji vertical alignment (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszGrajdek authored Jun 21, 2024
1 parent 18770e8 commit 60554fe
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'});
break;
case 'mention-here':
Object.assign(node.style, markdownStyle.mentionHere);
Expand Down

0 comments on commit 60554fe

Please sign in to comment.