From 2cab25d40e581bc45327480d537fbc4fb765f416 Mon Sep 17 00:00:00 2001 From: Adil Atalay Hamamcioglu Date: Mon, 1 May 2023 06:25:50 +0300 Subject: [PATCH 1/5] Deleted unnecessary file --- src/routes/Counter.svelte | 102 -------------------------------------- 1 file changed, 102 deletions(-) delete mode 100644 src/routes/Counter.svelte diff --git a/src/routes/Counter.svelte b/src/routes/Counter.svelte deleted file mode 100644 index 96ef556..0000000 --- a/src/routes/Counter.svelte +++ /dev/null @@ -1,102 +0,0 @@ - - -
- - -
-
- - {Math.floor($displayed_count)} -
-
- - -
- - From 137640f421dfdaa72c696034cae871e99ef1dee9 Mon Sep 17 00:00:00 2001 From: Adil Atalay Hamamcioglu Date: Mon, 1 May 2023 06:26:06 +0300 Subject: [PATCH 2/5] UI/UX improvements --- src/routes/Logo.svelte | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/routes/Logo.svelte b/src/routes/Logo.svelte index f659776..a3891cd 100644 --- a/src/routes/Logo.svelte +++ b/src/routes/Logo.svelte @@ -4,8 +4,11 @@ - From b7d83b0b26885f7f6e89e7d28fce22559badd7ea Mon Sep 17 00:00:00 2001 From: Adil Atalay Hamamcioglu Date: Mon, 1 May 2023 06:26:30 +0300 Subject: [PATCH 3/5] Added horizontal divider --- src/routes/NavBar.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/NavBar.svelte b/src/routes/NavBar.svelte index 05081fa..9e79c04 100644 --- a/src/routes/NavBar.svelte +++ b/src/routes/NavBar.svelte @@ -140,6 +140,8 @@ +
+ {#each $chats as { title }, index}
{:else}

- This place is emptier than my bed... + This place is emptier than my head...

Enter a new prompt such as; @@ -298,7 +307,52 @@ class:deleted-prompt={isDeleted} aria-multiline="true">{content} -

+
+ + + {#if isDeleted} -
+ {/if} +
{/each} @@ -362,6 +399,7 @@ id="prompt-input" aria-multiline="true" aria-label="Prompt" + class:remembering={remember} on:input={(e) => (prompt = e.currentTarget.value.trim())} on:keyup={(e) => { if (e.key === "Enter" && e.ctrlKey) { @@ -393,9 +431,50 @@ - - Press Ctrl + Enter to submit. - +
+
+ {#if remember} + { + remember = !remember; + }} + on:keyup={() => {}} + > + + + + + Previous prompts will be remembered + {:else} + { + remember = !remember; + }} + on:keyup={() => {}} + > + + + + + Only the last prompt will be submitted + {/if} +
+ + + Press Ctrl + Enter to submit. + +
@@ -408,14 +487,38 @@ calc(100vw - 24ch) ); + .hintbar { + display: flex; + flex-direction: column; + color: rgba(255, 255, 255, 0.5); + fill: rgba(255, 255, 255, 0.5); + } + + .remember-toggle-box { + display: flex; + align-items: center; + justify-content: flex-start; + margin-left: 2.5rem; + margin-bottom: 0.5rem; + } + + .toggle { + width: 3ch; + margin-right: 1ch; + } + + .remembering { + border: 2px solid rgb(57, 118, 169); + } + .main-cont { display: flex; position: relative; flex-direction: column; justify-content: center; align-items: center; - flex: 1; - height: 100vh; + padding-top: 4rem; + max-height: calc(100vh - 10rem); } .submit { @@ -526,12 +629,15 @@ flex: 1; display: flex; flex-direction: column; - padding: 1rem; + padding: 2rem; width: $content-width; max-width: 64rem; margin: 0 auto; padding-left: clamp(20ch, 35ch, 50ch); box-sizing: border-box; + max-height: 100vh; + align-items: center; + justify-content: center; } .regen { @@ -618,4 +724,10 @@ grid-area: 2 / 1 / 3 / 2; padding-top: 1ch; } + + .prompt-actions { + display: flex; + flex-direction: row; + align-items: center; + } diff --git a/src/routes/Titlebar.svelte b/src/routes/Titlebar.svelte new file mode 100644 index 0000000..0e21647 --- /dev/null +++ b/src/routes/Titlebar.svelte @@ -0,0 +1,96 @@ + + +
+
+ {#if titleEditing} + + + {}} + on:click={() => { + titleEditing = !titleEditing; + }} + class="title-action" + > + + + + {:else} + + {$chats[$selectedChat].title} + + + {}} + on:click={() => { + titleEditing = !titleEditing; + }} + class="title-action" + > + + + + {/if} +
+
+ + From f686425a7531e93047e0fe359167043b118d6ec6 Mon Sep 17 00:00:00 2001 From: Adil Atalay Hamamcioglu Date: Mon, 1 May 2023 09:24:56 +0300 Subject: [PATCH 5/5] User pointer cursor on toggle --- src/routes/+page.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 76a854f..54c01ae 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -505,6 +505,7 @@ .toggle { width: 3ch; margin-right: 1ch; + cursor: pointer; } .remembering {