summaryrefslogtreecommitdiff
path: root/extension/react-app/src/pages
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-28 19:43:21 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-28 19:43:21 -0700
commit48b8f1f0ad89a2b4e35f49c360576dd5aa99a7c0 (patch)
tree9b146166fc4fab5c079fa4ca508549198fe50a1e /extension/react-app/src/pages
parent9930b5d3b5ded68feb55b0e6b17c2c7b58d1513a (diff)
downloadsncontinue-48b8f1f0ad89a2b4e35f49c360576dd5aa99a7c0.tar.gz
sncontinue-48b8f1f0ad89a2b4e35f49c360576dd5aa99a7c0.tar.bz2
sncontinue-48b8f1f0ad89a2b4e35f49c360576dd5aa99a7c0.zip
feat: :lipstick: fixed footer and change button color
Diffstat (limited to 'extension/react-app/src/pages')
-rw-r--r--extension/react-app/src/pages/gui.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx
index ac7c5070..35c17444 100644
--- a/extension/react-app/src/pages/gui.tsx
+++ b/extension/react-app/src/pages/gui.tsx
@@ -202,6 +202,13 @@ function GUI(props: GUIProps) {
const onMainTextInput = (event?: any) => {
if (mainTextInputRef.current) {
let input = (mainTextInputRef.current as any).inputValue;
+
+ if (input.startsWith("#") && (input.length === 7 || input.length === 4)) {
+ localStorage.setItem("continueButtonColor", input);
+ (mainTextInputRef.current as any).setInputValue("");
+ return;
+ }
+
// cmd+enter to /edit
if (isMetaEquivalentKeyPressed(event)) {
input = `/edit ${input}`;