Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
removed table header margins to match table body (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmvfelipemonsalve authored Aug 12, 2019
1 parent 2d315e7 commit 39ce1a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function Table<RowShape>({
borderBottom: `1px solid ${colors.silver.dark}`,
}}
>
{columns.map(({ headerTitle, id }) => (
{columns.map(({ headerTitle, id }, colIndex) => (
<th
key={id}
css={{
Expand All @@ -93,6 +93,8 @@ export function Table<RowShape>({
fontWeight: 600,
textAlign: "left",
padding,
paddingLeft: colIndex === 0 ? 0 : padding,
paddingRight: colIndex === columns.length - 1 ? 0 : padding,
}}
>
{headerTitle}
Expand Down

0 comments on commit 39ce1a1

Please sign in to comment.