@@ -52,6 +52,7 @@ import {
52
52
} from "~/presenters/v3/DeploymentListPresenter.server" ;
53
53
import { requireUserId } from "~/services/session.server" ;
54
54
import { titleCase } from "~/utils" ;
55
+ import { cn } from "~/utils/cn" ;
55
56
import { EnvironmentParamSchema , docsPath , v3DeploymentPath } from "~/utils/pathBuilder" ;
56
57
import { createSearchParams } from "~/utils/searchParams" ;
57
58
import { BranchTrackingConfigSchema , getTrackedBranchForEnvironment } from "~/v3/github" ;
@@ -170,8 +171,8 @@ export default function Page() {
170
171
< ResizablePanelGroup orientation = "horizontal" className = "h-full max-h-full" >
171
172
< ResizablePanel id = "deployments-main" min = "100px" className = "max-h-full" >
172
173
{ hasDeployments ? (
173
- < div className = "grid max-h-full grid-rows-[1fr_auto] " >
174
- < Table containerClassName = "border-t-0" >
174
+ < div className = "flex h-full max-h-full flex-col " >
175
+ < Table containerClassName = "border-t-0 grow " >
175
176
< TableHeader >
176
177
< TableRow >
177
178
< TableHeaderCell > Deploy</ TableHeaderCell >
@@ -296,9 +297,14 @@ export default function Page() {
296
297
) }
297
298
</ TableBody >
298
299
</ Table >
299
- < div className = "-mt-px flex justify-between gap-2 border-t border-grid-dimmed px-2 py-2" >
300
+ < div
301
+ className = { cn (
302
+ "-mt-px flex flex-wrap justify-end gap-2 border-t border-grid-dimmed px-3 pb-[7px] pt-[6px]" ,
303
+ connectedGithubRepository && environmentGitHubBranch && "justify-between"
304
+ ) }
305
+ >
300
306
{ connectedGithubRepository && environmentGitHubBranch && (
301
- < div className = "flex flex-nowrap items-center gap-2 whitespace-nowrap text-sm" >
307
+ < div className = "flex flex-nowrap items-center gap-2 whitespace-nowrap py-0.5 text-sm" >
302
308
< OctoKitty className = "size-4" />
303
309
Automatically triggered by pushes to{ " " }
304
310
< div className = "flex max-w-32 items-center gap-1 truncate rounded bg-grid-dimmed px-1 font-mono" >
@@ -315,7 +321,7 @@ export default function Page() {
315
321
</ a >
316
322
</ div >
317
323
) }
318
- < PaginationControls currentPage = { currentPage } totalPages = { 20 } />
324
+ < PaginationControls currentPage = { currentPage } totalPages = { totalPages } />
319
325
</ div >
320
326
</ div >
321
327
) : environment . type === "DEVELOPMENT" ? (
0 commit comments