Skip to content

Commit

Permalink
Fix text alignment inside message-body. (#287)
Browse files Browse the repository at this point in the history
* Fix text alignment inside message-body.

* Fix text alignment inside message-body.
  • Loading branch information
wrth1337 authored Oct 25, 2023
1 parent 5518655 commit 6c22307
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/react/src/components/Markdown/Markdown.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Temporary fix for Issue #273 until "Markdown.styles.js" works correctly
*/

.joypixels {
height: 1.5rem;
width: 1.5rem;
image-rendering: pixelated;
font-size: inherit;
vertical-align: middle;
}
1 change: 1 addition & 0 deletions packages/react/src/components/Markdown/Markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { css } from '@emotion/react'; // Import Emotion's css function
import { Markup } from '../Markup/index';
import { Box } from '../Box';
import MessageEmoji from '../MessageEmoji/MessageEmoji';
import {} from './Markdown.css'

const Markdown = ({ body, isReaction = false }) => {
if (isReaction) {
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/Markdown/Markdown.styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const markdownStyles = {
width: 1.5rem;
image-rendering: pixelated;
font-size: inherit; // Use 'inherit' to match text size
vertical-align: middle; // Hotfix in "Markdown.css"
`,
joypixels_BigEmoji: css`
height: 2.75rem;
Expand Down

0 comments on commit 6c22307

Please sign in to comment.