Skip to content

Commit 3f38073

Browse files
committed
Adds animated resizalbe to bulk actions
1 parent 51d55d1 commit 3f38073

File tree

1 file changed

+22
-8
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.bulk-actions

1 file changed

+22
-8
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.bulk-actions/route.tsx

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ import { NavBar, PageAccessories, PageTitle } from "~/components/primitives/Page
1313
import { PaginationControls } from "~/components/primitives/Pagination";
1414
import { Paragraph } from "~/components/primitives/Paragraph";
1515
import {
16+
RESIZABLE_PANEL_ANIMATION,
1617
ResizableHandle,
1718
ResizablePanel,
1819
ResizablePanelGroup,
20+
collapsibleHandleClassName,
1921
} from "~/components/primitives/Resizable";
2022
import {
2123
Table,
@@ -170,14 +172,26 @@ export default function Page() {
170172
)}
171173
</div>
172174
</ResizablePanel>
173-
{isShowingInspector && (
174-
<>
175-
<ResizableHandle id="bulk-actions-handle" />
176-
<ResizablePanel id="bulk-actions-inspector" min="100px" default="500px">
177-
<Outlet />
178-
</ResizablePanel>
179-
</>
180-
)}
175+
<ResizableHandle
176+
id="bulk-actions-handle"
177+
className={collapsibleHandleClassName(isShowingInspector)}
178+
/>
179+
<ResizablePanel
180+
id="bulk-actions-inspector"
181+
default="500px"
182+
min="500px"
183+
max="800px"
184+
className="overflow-hidden"
185+
collapsible
186+
collapsed={!isShowingInspector}
187+
onCollapseChange={() => {}}
188+
collapsedSize="0px"
189+
collapseAnimation={RESIZABLE_PANEL_ANIMATION}
190+
>
191+
<div className="h-full" style={{ minWidth: 500 }}>
192+
<Outlet />
193+
</div>
194+
</ResizablePanel>
181195
</ResizablePanelGroup>
182196
)}
183197
</PageBody>

0 commit comments

Comments
 (0)