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

Table Margin Fix #66

Merged
merged 1 commit into from
Aug 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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