Merge pull request #150 from adin234/fix/break-anchor-image-max-width

#143 Resources: very long links and wide images break mobile
This commit is contained in:
Jean-Philippe Sirois
2019-10-18 10:37:01 -04:00
committed by GitHub
+5
View File
@@ -96,6 +96,10 @@ export const MarkdownWrapper = styled.div`
padding: 0; padding: 0;
} }
img {
max-width: 100%;
}
pre[class*="language-"] { pre[class*="language-"] {
.token.boolean, .token.boolean,
.token.number, .token.number,
@@ -119,6 +123,7 @@ export const MarkdownWrapper = styled.div`
} }
a { a {
word-break: break-all;
color: ${props => props.theme.main.link}; color: ${props => props.theme.main.link};
cursor: pointer; cursor: pointer;