Fix congrats aesthetics
dkl9

dkl9 commited on 2025-361 19:24:03
Showing 2 changed files, with 3 additions and 3 deletions.

... ...
@@ -16,7 +16,7 @@
16 16
             .yellow { background: #c9b458; }
17 17
             .green { background: #6aaa64; }
18 18
             #message { color: red; margin-top: 5px; }
19
-            .side { margin-left: 20px; }
19
+            .side { margin-left: 20px; max-width: max(40vw, 27rem); }
20 20
             .shake { animation: shake 0.3s; }
21 21
             @keyframes shake {
22 22
                 0% { transform: translateX(0); }
... ...
@@ -27,7 +27,7 @@ switch (host) {
27 27
                 b.type = "button";
28 28
                 b.addEventListener("click", () => navigator.clipboard.writeText(boast));
29 29
                 note.append(b);
30
-                grid.parentElement.before(note);
30
+                grid.before(note);
31 31
                 navigator.clipboard.writeText(score.join("\n"));
32 32
             }
33 33
         })();
... ...
@@ -272,7 +272,7 @@ function winMessage() {
272 272
     w.append(elemText("", "br"));
273 273
     w.append("Come back tomorrow for the next function.");
274 274
     w.classList.add("side");
275
-    grid.parentElement.before(w);
275
+    grid.before(w);
276 276
 }
277 277
 
278 278
 function loseMessage() {
279 279