@@ -12,6 +12,7 @@ import { useStore } from "../../store";
1212import { ImportList } from "./ImportList" ;
1313import { TraceDetail } from "../detail/TraceDetail" ;
1414import { SubscriptionDetail } from "../subscription/SubscriptionDetail" ;
15+ import { ResizeHandle } from "../layout/ResizeHandle" ;
1516
1617interface ImportViewProps {
1718 viewState : ViewState ;
@@ -98,9 +99,21 @@ export const ImportView: Component<ImportViewProps> = (props) => {
9899 input . click ( ) ;
99100 } ;
100101
102+ const handleResize = ( delta : number ) => {
103+ const currentWidth = props . viewState . listPanelWidth ;
104+ const newWidth = Math . max (
105+ 200 ,
106+ Math . min ( currentWidth + delta , window . innerWidth / 2 )
107+ ) ;
108+ props . actions . updateViewState ( "listPanelWidth" , newWidth ) ;
109+ } ;
110+
101111 return (
102112 < div class = "flex h-full w-full" >
103- < div class = "w-70 border-r border-spoosh-border flex flex-col" >
113+ < div
114+ class = "shrink-0 border-r border-spoosh-border flex flex-col"
115+ style = { { width : `${ props . viewState . listPanelWidth } px` } }
116+ >
104117 < div class = "px-3 py-2 text-xs font-medium text-spoosh-text-muted border-b border-spoosh-border bg-spoosh-surface/50 flex items-center justify-between" >
105118 < span > Imported Traces</ span >
106119 { session ( ) && (
@@ -120,6 +133,8 @@ export const ImportView: Component<ImportViewProps> = (props) => {
120133 />
121134 </ div >
122135
136+ < ResizeHandle onResize = { handleResize } />
137+
123138 < div class = "flex-1 min-w-0" >
124139 < Show
125140 when = { selectedItem ( ) }
0 commit comments