@@ -226,13 +226,7 @@ struct ContentView: View {
226226 } detail: {
227227 // MARK: - Detail (Main workspace with optional right sidebar)
228228 if let currentSession = currentSession, let rightPanelState, let sessionState {
229- HorizontalSplitView (
230- isTrailingCollapsed: !rightPanelState. isPresented,
231- trailingWidth: Bindable ( rightPanelState) . panelWidth,
232- minTrailingWidth: RightPanelState . minWidth,
233- maxTrailingWidth: RightPanelState . maxWidth,
234- autosaveName: " InspectorSplit "
235- ) {
229+ HStack ( spacing: 0 ) {
236230 MainContentView (
237231 connection: currentSession. connection,
238232 payload: payload,
@@ -250,15 +244,23 @@ struct ContentView: View {
250244 toolbarState: sessionState. toolbarState,
251245 coordinator: sessionState. coordinator
252246 )
253- } trailing: {
254- UnifiedRightPanelView (
255- state: rightPanelState,
256- inspectorContext: inspectorContext,
257- connection: currentSession. connection,
258- tables: currentSession. tables
259- )
260- . background ( Color ( nsColor: . windowBackgroundColor) )
247+ . frame ( maxWidth: . infinity)
248+
249+ if rightPanelState. isPresented {
250+ PanelResizeHandle ( panelWidth: Bindable ( rightPanelState) . panelWidth)
251+ Divider ( )
252+ UnifiedRightPanelView (
253+ state: rightPanelState,
254+ inspectorContext: inspectorContext,
255+ connection: currentSession. connection,
256+ tables: currentSession. tables
257+ )
258+ . frame ( width: rightPanelState. panelWidth)
259+ . background ( Color ( nsColor: . windowBackgroundColor) )
260+ . transition ( . move( edge: . trailing) )
261+ }
261262 }
263+ . animation ( . easeInOut( duration: 0.2 ) , value: rightPanelState. isPresented)
262264 } else {
263265 VStack ( spacing: 16 ) {
264266 ProgressView ( )
0 commit comments