From fc187e0028c7ef74e0fd326bc764310880ac11ee Mon Sep 17 00:00:00 2001 From: mp Date: Sun, 15 Dec 2024 23:01:24 -0800 Subject: [PATCH] sidebar scrolllock --- .../void/browser/react/src/sidebar-tsx/Sidebar.tsx | 2 +- .../void/browser/react/src/sidebar-tsx/SidebarChat.tsx | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/Sidebar.tsx b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/Sidebar.tsx index 7725b16a..399feff8 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/Sidebar.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/Sidebar.tsx @@ -24,7 +24,7 @@ export const Sidebar = () => { const { isHistoryOpen, currentTab: tab } = sidebarState // className='@@void-scope' - return
+ return
{/* { diff --git a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx index 591886bc..abb47d23 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx @@ -58,8 +58,8 @@ const IconArrowUp = ({ size, className = '' }: { size: number, className?: strin > @@ -405,11 +405,8 @@ export const SidebarChat = () => { const previousMessages = currentThread?.messages ?? [] - - const [_test, _setTest] = useState([]) - return
{ if (ref) { setSidebarHeight(ref.clientHeight); } }} className={`w-full h-full`} @@ -429,6 +426,7 @@ export const SidebarChat = () => {
{`totalHeight: ${sidebarHeight - formHeight - 30}`}
{`sidebarHeight: ${sidebarHeight}`}
{`formHeight: ${formHeight}`}
+