Skip to content

Commit

Permalink
feat: support math in MediaCard description
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Feb 24, 2020
1 parent 10014fd commit d557400
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/components/common/MediaCard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.MediaCardDescriptionText p {
font-size: large;
}
7 changes: 3 additions & 4 deletions src/components/common/MediaCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import DeleteButton from '../space/DeleteButton';
import ExportButton from '../space/ExportButton';
import SyncButton from '../space/SyncButton';
import { MIN_CARD_WIDTH } from '../../config/constants';
import Text from './Text';
import './MediaCard.css';

const styles = theme => ({
card: {
Expand Down Expand Up @@ -64,10 +66,7 @@ const MediaCard = props => {

<Collapse disableSpacing in={expanded} timeout="auto" unmountOnExit>
<CardContent className={classes.cardDescription}>
<Typography
component="p"
dangerouslySetInnerHTML={{ __html: text }}
/>
<Text content={text} className="MediaCardDescriptionText" />
</CardContent>
</Collapse>

Expand Down

0 comments on commit d557400

Please sign in to comment.