From da0b652b2917d774618f8c0e6b89b53bcfbdf28e Mon Sep 17 00:00:00 2001 From: Zoe <62722391+juls0730@users.noreply.github.com> Date: Mon, 2 Mar 2026 13:42:54 -0600 Subject: [PATCH] fix: sidebar styles and search button --- app/components/ChatInput.vue | 3 + app/components/Sidenav/HeaderAgent.vue | 2 +- app/components/Sidenav/NavAgent.vue | 81 +++++++++++++------------- app/components/Sidenav/NavHome.vue | 6 +- app/components/Sidenav/index.vue | 4 +- app/composables/useChat.ts | 1 + 6 files changed, 50 insertions(+), 47 deletions(-) diff --git a/app/components/ChatInput.vue b/app/components/ChatInput.vue index 594b123..98452c9 100644 --- a/app/components/ChatInput.vue +++ b/app/components/ChatInput.vue @@ -116,6 +116,9 @@ const handleKeyDown = async (event: KeyboardEvent) => { textAreaValue.value = textAreaValue.value.slice(0, cursorPosition) + '\n' + textAreaValue.value.slice(cursorPosition); + nextTick(() => { + inputRef.value!.setSelectionRange(cursorPosition + 1, cursorPosition + 1); + }); return; } event.preventDefault(); diff --git a/app/components/Sidenav/HeaderAgent.vue b/app/components/Sidenav/HeaderAgent.vue index 1b3fcca..30dff21 100644 --- a/app/components/Sidenav/HeaderAgent.vue +++ b/app/components/Sidenav/HeaderAgent.vue @@ -21,7 +21,7 @@ const { isHovered } = useSidenavContext();