Skip to content

Commit 16ff502

Browse files
committed
Better scrolling on the Queues page
1 parent 99e722c commit 16ff502

File tree

1 file changed

+24
-16
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues

1 file changed

+24
-16
lines changed

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

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export default function Page() {
235235
</PageAccessories>
236236
</NavBar>
237237
<PageBody scrollable={false}>
238-
<div className="flex flex-col">
238+
<div className="grid max-h-full grid-rows-[auto_1fr] overflow-hidden">
239239
<div className="grid grid-cols-3 gap-3 p-3">
240240
<BigNumber
241241
title="Queued"
@@ -281,7 +281,12 @@ export default function Page() {
281281
</div>
282282

283283
{success ? (
284-
<>
284+
<div
285+
className={cn(
286+
"grid h-fit max-h-full min-h-full grid-rows-[1fr] overflow-x-auto",
287+
pagination.totalPages > 1 && "grid-rows-[1fr_auto]"
288+
)}
289+
>
285290
<Table containerClassName="border-t">
286291
<TableHeader>
287292
<TableRow>
@@ -376,25 +381,28 @@ export default function Page() {
376381
</TableBody>
377382
</Table>
378383

379-
<div
380-
className={cn(
381-
"grid h-fit max-h-full min-h-full overflow-x-auto",
382-
pagination.totalPages > 1 ? "grid-rows-[1fr_auto]" : "grid-rows-[1fr]"
383-
)}
384-
>
384+
{pagination.totalPages > 1 && (
385385
<div
386386
className={cn(
387-
"flex min-h-full",
388-
pagination.totalPages > 1 && "justify-end border-t border-grid-dimmed px-2 py-3"
387+
"grid h-fit max-h-full min-h-full overflow-x-auto",
388+
pagination.totalPages > 1 ? "grid-rows-[1fr_auto]" : "grid-rows-[1fr]"
389389
)}
390390
>
391-
<PaginationControls
392-
currentPage={pagination.currentPage}
393-
totalPages={pagination.totalPages}
394-
/>
391+
<div
392+
className={cn(
393+
"flex min-h-full",
394+
pagination.totalPages > 1 &&
395+
"justify-end border-t border-grid-dimmed px-2 py-3"
396+
)}
397+
>
398+
<PaginationControls
399+
currentPage={pagination.currentPage}
400+
totalPages={pagination.totalPages}
401+
/>
402+
</div>
395403
</div>
396-
</div>
397-
</>
404+
)}
405+
</div>
398406
) : (
399407
<div className="grid place-items-center py-6 text-text-dimmed">
400408
{code === "engine-version" ? (

0 commit comments

Comments
 (0)