aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mmm/mmmfs/converts.moon3
-rw-r--r--scss/_content.scss3
2 files changed, 6 insertions, 0 deletions
diff --git a/mmm/mmmfs/converts.moon b/mmm/mmmfs/converts.moon
index c1f7cea..f098448 100644
--- a/mmm/mmmfs/converts.moon
+++ b/mmm/mmmfs/converts.moon
@@ -376,6 +376,9 @@ if MODE == 'CLIENT' and window.mermaid
with container = document\createElement 'div'
cb = (svg) =>
.innerHTML = svg
+ .firstElementChild.style.width = '100%'
+ .firstElementChild.style.height = 'auto'
+
window\setImmediate (_) ->
window.mermaid\render id, source, cb, container
}
diff --git a/scss/_content.scss b/scss/_content.scss
index 708685f..66b9f42 100644
--- a/scss/_content.scss
+++ b/scss/_content.scss
@@ -8,6 +8,8 @@
.markdown > p,
.markdown > p > a,
.markdown > a {
+ max-width: 100%;
+
> img, > video {
display: block;
max-width: 100%;
@@ -21,6 +23,7 @@
.embed {
width: inherit;
height: inherit;
+ max-width: inherit;
.description {
text-align: center;