From 121f718ea603c50b2322f8039a8348bdc42c498e Mon Sep 17 00:00:00 2001 From: cor Date: Thu, 28 Sep 2023 16:21:21 +0200 Subject: [PATCH] fix(site): scrolling to bottom on ios --- site/src/lib/Xterm.svelte | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/site/src/lib/Xterm.svelte b/site/src/lib/Xterm.svelte index 40f9945d87..153c281b64 100644 --- a/site/src/lib/Xterm.svelte +++ b/site/src/lib/Xterm.svelte @@ -84,7 +84,7 @@ console.log(result) const newLine = filter(result); if (newLine != null) { - logLines = [...logLines, newLine]; + logLines = [newLine, ...logLines]; } }) @@ -100,12 +100,10 @@
-
-
- {#each logLines as {network, action, logLine}} -
[{network}] {action}{logLine}
- {/each} -
+
+ {#each logLines as {network, action, logLine}} +
[{network}] {action}{logLine}
+ {/each}