Skip to content

Commit 167c152

Browse files
authored
fix: prevent UI from jumping around when selecting workspaces (coder#11321)
1 parent b3e3521 commit 167c152

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

site/src/components/PaginationWidget/PaginationHeader.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@ type PaginationHeaderProps = {
77
limit: number;
88
totalRecords: number | undefined;
99
currentOffsetStart: number | undefined;
10+
11+
// Temporary escape hatch until Workspaces can be switched over to using
12+
// PaginationContainer
13+
className?: string;
1014
};
1115

1216
export const PaginationHeader: FC<PaginationHeaderProps> = ({
1317
paginationUnitLabel,
1418
limit,
1519
totalRecords,
1620
currentOffsetStart,
21+
className,
1722
}) => {
1823
const theme = useTheme();
1924

@@ -32,6 +37,7 @@ export const PaginationHeader: FC<PaginationHeaderProps> = ({
3237
color: theme.palette.text.primary,
3338
},
3439
}}
40+
className={className}
3541
>
3642
{totalRecords !== undefined ? (
3743
<>

site/src/pages/WorkspacesPage/WorkspacesPageView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export const WorkspacesPageView = ({
162162
limit={limit}
163163
totalRecords={count}
164164
currentOffsetStart={(page - 1) * limit + 1}
165+
css={{ paddingBottom: "0" }}
165166
/>
166167
)}
167168
</TableToolbar>

0 commit comments

Comments
 (0)