diff --git a/frontend/src/components/icon.svelte b/frontend/src/components/icon.svelte
index 269ed33..428552b 100644
--- a/frontend/src/components/icon.svelte
+++ b/frontend/src/components/icon.svelte
@@ -3,6 +3,7 @@
export let name = '';
export let spin = false;
+ export let rotation = 0;
if (name === 'loading') {
spin = true;
@@ -10,6 +11,19 @@
diff --git a/frontend/src/lib/icons.json b/frontend/src/lib/icons.json
index 2467f01..4a9f780 100644
--- a/frontend/src/lib/icons.json
+++ b/frontend/src/lib/icons.json
@@ -40,5 +40,6 @@
"!": "",
"loading": "",
"shell": "",
- "doc": ""
+ "doc": "",
+ "columns": ""
}
diff --git a/frontend/src/organisms/connection/shell.svelte b/frontend/src/organisms/connection/shell.svelte
index aeb2e2b..d69101f 100644
--- a/frontend/src/organisms/connection/shell.svelte
+++ b/frontend/src/organisms/connection/shell.svelte
@@ -15,6 +15,7 @@
const extensions = [ javascript() ];
let script = '';
let result = {};
+ let horizontal = false;
let copySucceeded = false;
let timeout;
let busy = false;
@@ -72,6 +73,10 @@
timeout = setTimeout(() => copySucceeded = false, 1500);
}
+ function toggleView() {
+ horizontal = !horizontal;
+ }
+
$: visible && editor.focus();
onMount(() => {
@@ -94,7 +99,7 @@
onDestroy(() => clearTimeout(timeout));
-
+
+
+
{#key result}
{#if result?.status}
@@ -145,6 +154,9 @@
display: grid;
grid-template: 1fr auto / 1fr 1fr;
}
+ .shell.horizontal {
+ grid-template: 1fr 1fr auto / 1fr;
+ }
.overflow {
overflow: auto;
@@ -189,7 +201,10 @@
align-items: center;
grid-column: 1 / 3;
}
- .controls .status {
+ .controls .viewtoggle {
margin-left: auto;
}
+ .shell.horizontal .controls {
+ grid-column: 1;
+ }