diff --git a/src/App.svelte b/src/App.svelte index 2468a464..97f4d7d7 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -17,12 +17,12 @@
-
+
diff --git a/src/components/History.svelte b/src/components/History.svelte index 51643f3c..daa6d51a 100644 --- a/src/components/History.svelte +++ b/src/components/History.svelte @@ -5,15 +5,19 @@ {#each $history as { command, outputs }} -
-
+
+
-

{command}

+
+

+ +

{command}

+
{#each outputs as output} -

+

{output}

{/each} diff --git a/src/components/Input.svelte b/src/components/Input.svelte index 3a61cef2..085b692e 100644 --- a/src/components/Input.svelte +++ b/src/components/Input.svelte @@ -6,19 +6,10 @@ import { track } from '../utils/tracking'; let command = ''; - let isFocused = false; let historyIndex = -1; let input: HTMLInputElement; - const handleFocus = () => { - isFocused = true; - }; - - const handleBlur = () => { - isFocused = false; - }; - onMount(() => { input.focus(); @@ -98,53 +89,21 @@ { input.focus(); - isFocused = true; }} /> -
+
+

+ - - {#if isFocused} -
- {/if}
- -