File tree Expand file tree Collapse file tree
apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.batches Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,9 +13,11 @@ import { DateTime } from "~/components/primitives/DateTime";
1313import { NavBar , PageAccessories , PageTitle } from "~/components/primitives/PageHeader" ;
1414import { Paragraph } from "~/components/primitives/Paragraph" ;
1515import {
16+ RESIZABLE_PANEL_ANIMATION ,
1617 ResizableHandle ,
1718 ResizablePanel ,
1819 ResizablePanelGroup ,
20+ collapsibleHandleClassName ,
1921} from "~/components/primitives/Resizable" ;
2022import { Spinner } from "~/components/primitives/Spinner" ;
2123import {
@@ -143,14 +145,25 @@ export default function Page() {
143145 />
144146 </ div >
145147 </ ResizablePanel >
146- { isShowingInspector && (
147- < >
148- < ResizableHandle id = "batches-handle" />
149- < ResizablePanel id = "batches-inspector" min = "100px" default = "500px" >
150- < Outlet />
151- </ ResizablePanel >
152- </ >
153- ) }
148+ < ResizableHandle
149+ id = "batches-handle"
150+ className = { collapsibleHandleClassName ( isShowingInspector ) }
151+ />
152+ < ResizablePanel
153+ id = "batches-inspector"
154+ min = "100px"
155+ default = "500px"
156+ className = "overflow-hidden"
157+ collapsible
158+ collapsed = { ! isShowingInspector }
159+ onCollapseChange = { ( ) => { } }
160+ collapsedSize = "0px"
161+ collapseAnimation = { RESIZABLE_PANEL_ANIMATION }
162+ >
163+ < div className = "h-full" style = { { minWidth : 500 } } >
164+ < Outlet />
165+ </ div >
166+ </ ResizablePanel >
154167 </ ResizablePanelGroup >
155168 ) }
156169 </ PageBody >
You can’t perform that action at this time.
0 commit comments