Skip to content

Commit

Permalink
Don't wrap the indexes table header cells
Browse files Browse the repository at this point in the history
  • Loading branch information
lerouxb committed Sep 24, 2024
1 parent cd91aec commit c6a6e2d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
import type {
LGColumnDef,
LGTableDataType,
HeaderGroup,
LeafyGreenTableCell,
LeafyGreenTableRow,
SortingState,
Expand Down Expand Up @@ -76,6 +75,7 @@ const tableHeadDarkModeStyles = css({
});

const tableHeadCellStyles = css({
whiteSpace: 'nowrap',
'> div': {
// Push the sort button to the right of the head cell.
justifyContent: 'space-between',
Expand Down Expand Up @@ -126,7 +126,7 @@ export function IndexesTable<T>({
isSticky
className={cx(tableHeadStyles, darkMode && tableHeadDarkModeStyles)}
>
{table.getHeaderGroups().map((headerGroup: HeaderGroup<T>) => (
{table.getHeaderGroups().map((headerGroup) => (
<HeaderRow key={headerGroup.id}>
{headerGroup.headers.map((header) => {
return (
Expand Down

0 comments on commit c6a6e2d

Please sign in to comment.