diff --git a/src/Common.css b/src/Common.css index 03a9403..e73ad05 100644 --- a/src/Common.css +++ b/src/Common.css @@ -58,3 +58,18 @@ padding: 0 .1rem; margin-left: .15rem; } + +.img-link { + display: inline-block; +} + + +.img-link img { + max-width: 100%; + max-height: 2000px; +} + +.left-container .img-link img { + max-height: 500px; +} + diff --git a/src/Common.js b/src/Common.js index daf29ac..32de7d1 100644 --- a/src/Common.js +++ b/src/Common.js @@ -136,7 +136,7 @@ export class HighlightedMarkdown extends Component { href={normalize_url(node.attribs.src)} target="_blank" rel="noopenner noreferrer" - className="ext-link" + className="ext-link img-link" key={index} >