From 0f5b859ee2867f00a9bde45e878d63c3671f8c8f Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Fri, 13 Feb 2026 09:19:29 -0800 Subject: [PATCH] Adjust Scratch AC positioning --- .../runestone/activecode/css/activecode.css | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bases/rsptx/interactives/runestone/activecode/css/activecode.css b/bases/rsptx/interactives/runestone/activecode/css/activecode.css index b5f190c33..c3cdd9725 100644 --- a/bases/rsptx/interactives/runestone/activecode/css/activecode.css +++ b/bases/rsptx/interactives/runestone/activecode/css/activecode.css @@ -240,11 +240,12 @@ /* Hidden by default */ position: fixed; /* Stay in place */ - z-index: 200; + z-index: 9000; /* Sit on top */ - left: 200px; - top: 200px; + left: calc((100% - 800px) / 2); width: 800px; + top: 5%; + max-height: 90%; overflow: auto; /* Enable scroll if needed */ padding: 20px; @@ -253,9 +254,11 @@ background-color: var(--background); } -.scratch-ac-modal { - max-height: 90%; - overflow-y: scroll; +@media (max-width: 960px) { + .scratch-ac-modal { + width: 90%; + left: 5%; + } } .ac-modal-body,