diff --git a/l4d2web/l4d2web/static/css/editor.css b/l4d2web/l4d2web/static/css/editor.css index 0017e98..92182a8 100644 --- a/l4d2web/l4d2web/static/css/editor.css +++ b/l4d2web/l4d2web/static/css/editor.css @@ -9,10 +9,21 @@ * in _editor_assets.html un-hides for JS-disabled users. */ textarea[data-editor-language] { display: none; } +/* Wrapper that reserves layout space before cm6 mounts, sized by the + * inline `min-height` style each call site sets to match the original + * textarea's `rows`. cm6 is a flex child that fills the reserved space + * (otherwise short content would render cm6 small with a gap below). */ +.editor-mount { + display: flex; + flex-direction: column; +} +.editor-mount > .cm-editor { + flex: 1; +} + .cm-editor { border: var(--line); border-radius: var(--radius-s); - min-height: 8em; } .cm-editor.cm-focused { diff --git a/l4d2web/l4d2web/templates/blueprint_detail.html b/l4d2web/l4d2web/templates/blueprint_detail.html index 0fae77b..b705654 100644 --- a/l4d2web/l4d2web/templates/blueprint_detail.html +++ b/l4d2web/l4d2web/templates/blueprint_detail.html @@ -51,7 +51,7 @@
{% for o in exposed %}exec {{ o.name }}.cfg
{% endfor %}
{% endif %}
-
+
diff --git a/l4d2web/l4d2web/templates/overlay_detail.html b/l4d2web/l4d2web/templates/overlay_detail.html
index 597e11a..dafc82b 100644
--- a/l4d2web/l4d2web/templates/overlay_detail.html
+++ b/l4d2web/l4d2web/templates/overlay_detail.html
@@ -24,7 +24,7 @@