Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Feedback & unset max-height in BaseTable
Browse files Browse the repository at this point in the history
  • Loading branch information
minnakt committed Oct 9, 2023
1 parent 1f6ea78 commit b4f0bba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 11 additions & 1 deletion src/components/Table/BaseTable.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { css } from "@leafygreen-ui/emotion";
import {
Cell,
ExpandedContent,
Expand Down Expand Up @@ -43,7 +44,16 @@ export const BaseTable = <T extends LGRowData>({
</TableHead>
<TableBody>
{table.getRowModel().rows.map((row) => (
<Row key={row.id} row={row} data-cy={dataCyRow}>
<Row
key={row.id}
row={row}
data-cy={dataCyRow}
className={css`
&[aria-hidden="false"] td > div {
max-height: unset;
}
`}
>
{row.getVisibleCells().map((cell) => (
<Cell key={cell.id}>
{flexRender(cell.column.columnDef.cell, cell.getContext())}
Expand Down
4 changes: 1 addition & 3 deletions src/pages/version/ParametersModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const ParametersModal: React.FC<ParametersProps> = ({ parameters }) => {
title="Patch Parameters"
>
<OverflowContainer>
<BaseTable table={table} />
<BaseTable table={table} shouldAlternateRowColor />
</OverflowContainer>
</DisplayModal>
</>
Expand All @@ -58,11 +58,9 @@ const columns: LGColumnDef<Parameter>[] = [
{
accessorKey: "key",
header: "Key",
cell: (value) => value.getValue(),
},
{
accessorKey: "value",
header: "Value",
cell: (value) => value.getValue(),
},
];

0 comments on commit b4f0bba

Please sign in to comment.