From 2f1a1ef284f67c47a6749a8fdd0d94b0539912db Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sun, 17 May 2026 02:34:24 +0200 Subject: [PATCH] Revert "fix(editor-v2): reserve editor slot to stop layout shift on mount" This reverts commit b915f2e7667afdc9771d353cf0804ac511df7852. --- l4d2web/l4d2web/static/css/editor.css | 13 +------------ l4d2web/l4d2web/templates/blueprint_detail.html | 2 +- l4d2web/l4d2web/templates/overlay_detail.html | 4 ++-- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/l4d2web/l4d2web/static/css/editor.css b/l4d2web/l4d2web/static/css/editor.css index 92182a8..0017e98 100644 --- a/l4d2web/l4d2web/static/css/editor.css +++ b/l4d2web/l4d2web/static/css/editor.css @@ -9,21 +9,10 @@ * 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 b705654..0fae77b 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 dafc82b..597e11a 100644 --- a/l4d2web/l4d2web/templates/overlay_detail.html +++ b/l4d2web/l4d2web/templates/overlay_detail.html @@ -24,7 +24,7 @@

Runs sandboxed against the overlay directory mounted at /overlay.

{% if not latest_build_is_running %} @@ -186,7 +186,7 @@
UTF-8 ยท 0 bytes