aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mmm/mmmfs/util.moon7
-rw-r--r--scss/_content.scss1
2 files changed, 5 insertions, 3 deletions
diff --git a/mmm/mmmfs/util.moon b/mmm/mmmfs/util.moon
index eb5d025..0e57f93 100644
--- a/mmm/mmmfs/util.moon
+++ b/mmm/mmmfs/util.moon
@@ -10,7 +10,7 @@ tourl = (path) ->
path .. '/'
(elements) ->
- import a, div, pre from elements
+ import a, div, span, pre from elements
find_fileder = (fileder, origin) ->
if 'string' == type fileder
@@ -53,8 +53,9 @@ tourl = (path) ->
ok, node = pcall fileder.gett, fileder, name, 'mmm/dom'
if not ok
- return div "couldn't embed #{fileder} #{name}",
+ return span "couldn't embed #{fileder} #{name}",
(pre node),
+ class: 'embed'
style: {
background: 'var(--gray-fail)',
padding: '1em',
@@ -64,7 +65,7 @@ tourl = (path) ->
klass ..= ' desc' if opts.desc
klass ..= ' inline' if opts.inline
- node = div {
+ node = span {
class: klass
node
if opts.desc
diff --git a/scss/_content.scss b/scss/_content.scss
index 6993fef..51994a3 100644
--- a/scss/_content.scss
+++ b/scss/_content.scss
@@ -27,6 +27,7 @@
}
.embed {
+ display: block;
width: inherit;
height: inherit;
max-width: inherit;