@@ -28,7 +28,10 @@ import React, {
28
28
useState ,
29
29
} from "react" ;
30
30
import { useConnection } from "./lib/hooks/useConnection" ;
31
- import { useDraggablePane , useDraggableSidebar } from "./lib/hooks/useDraggablePane" ;
31
+ import {
32
+ useDraggablePane ,
33
+ useDraggableSidebar ,
34
+ } from "./lib/hooks/useDraggablePane" ;
32
35
import { StdErrNotification } from "./lib/notificationTypes" ;
33
36
34
37
import { Tabs , TabsContent , TabsList , TabsTrigger } from "@/components/ui/tabs" ;
@@ -163,7 +166,11 @@ const App = () => {
163
166
const progressTokenRef = useRef ( 0 ) ;
164
167
165
168
const { height : historyPaneHeight , handleDragStart } = useDraggablePane ( 300 ) ;
166
- const { width : sidebarWidth , isDragging : isSidebarDragging , handleDragStart : handleSidebarDragStart } = useDraggableSidebar ( 320 ) ;
169
+ const {
170
+ width : sidebarWidth ,
171
+ isDragging : isSidebarDragging ,
172
+ handleDragStart : handleSidebarDragStart ,
173
+ } = useDraggableSidebar ( 320 ) ;
167
174
168
175
const {
169
176
connectionStatus,
@@ -564,7 +571,12 @@ const App = () => {
564
571
return (
565
572
< div className = "flex h-screen bg-background" >
566
573
< div
567
- style = { { width : sidebarWidth , minWidth : 200 , maxWidth : 600 , transition : isSidebarDragging ? 'none' : 'width 0.15s' } }
574
+ style = { {
575
+ width : sidebarWidth ,
576
+ minWidth : 200 ,
577
+ maxWidth : 600 ,
578
+ transition : isSidebarDragging ? "none" : "width 0.15s" ,
579
+ } }
568
580
className = "bg-card border-r border-border flex flex-col h-full relative"
569
581
>
570
582
< Sidebar
@@ -596,7 +608,16 @@ const App = () => {
596
608
{ /* Drag handle for resizing sidebar */ }
597
609
< div
598
610
onMouseDown = { handleSidebarDragStart }
599
- style = { { cursor : 'col-resize' , position : 'absolute' , top : 0 , right : 0 , width : 6 , height : '100%' , zIndex : 10 , background : isSidebarDragging ? 'rgba(0,0,0,0.08)' : 'transparent' } }
611
+ style = { {
612
+ cursor : "col-resize" ,
613
+ position : "absolute" ,
614
+ top : 0 ,
615
+ right : 0 ,
616
+ width : 6 ,
617
+ height : "100%" ,
618
+ zIndex : 10 ,
619
+ background : isSidebarDragging ? "rgba(0,0,0,0.08)" : "transparent" ,
620
+ } }
600
621
aria-label = "Resize sidebar"
601
622
data-testid = "sidebar-drag-handle"
602
623
/>
0 commit comments