Skip to content

Commit fc22275

Browse files
fix(PaginatedTable): fix layout (#1237)
1 parent b836d69 commit fc22275

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/components/PaginatedTable/PaginatedTable.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
}
2626
}
2727

28+
&__colgroup {
29+
display: table;
30+
}
31+
32+
&__table-chunk {
33+
display: block;
34+
}
35+
2836
&__row {
2937
&:hover {
3038
background: var(--paginated-table-hover-color);
@@ -169,8 +177,4 @@
169177
&__head-cell-wrapper:hover > &__resize-handler {
170178
visibility: visible;
171179
}
172-
173-
&__table-chunk {
174-
display: block;
175-
}
176180
}

src/components/PaginatedTable/TableHead.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const TableHead = <T,>({
183183

184184
const renderTableColGroups = () => {
185185
return (
186-
<colgroup>
186+
<colgroup className={b('colgroup')}>
187187
{columns.map((column) => {
188188
return <col key={column.name} style={{width: `${column.width}px`}} />;
189189
})}

0 commit comments

Comments
 (0)