Skip to content

Commit

Permalink
chore: don't wrap the indexes table header cells (#6276)
Browse files Browse the repository at this point in the history
Don't wrap the indexes table header cells
  • Loading branch information
lerouxb authored Sep 24, 2024
1 parent d146488 commit 8766574
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 8766574

Please sign in to comment.