1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-10-23 18:56:29 +02:00

Add SampleCode component

This commit is contained in:
Phuoc Nguyen
2019-11-15 16:36:42 +07:00
parent 20e8330fa1
commit 029755ed64
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ const SampleCode = ({ code, lang }) => {
return code === ''
? <></>
: (
<pre className="lh-copy mh0 mv3" dangerouslySetInnerHTML={{ __html: highlight(code, lang) }} />
<pre className="h-100 lh-copy ma0" dangerouslySetInnerHTML={{ __html: highlight(code, lang) }} />
);
};