feat: add table columns (#1056)

* feat: add table columns

Closes #879

* refactor: ComponentProps first
This commit is contained in:
Thaïs
2023-08-04 19:07:31 +02:00
committed by GitHub
parent a8856516bd
commit 417ca3d131
11 changed files with 406 additions and 107 deletions

View File

@ -20,7 +20,6 @@ const StyledTable = styled.table`
margin-left: ${({ theme }) => theme.table.horizontalCellMargin};
margin-right: ${({ theme }) => theme.table.horizontalCellMargin};
table-layout: fixed;
width: calc(100% - ${({ theme }) => theme.table.horizontalCellMargin} * 2);
th {
border: 1px solid ${({ theme }) => theme.border.color.light};
@ -37,7 +36,7 @@ const StyledTable = styled.table`
border-right-color: transparent;
}
:last-of-type {
min-width: 0;
min-width: fit-content;
width: 100%;
}
}
@ -58,7 +57,7 @@ const StyledTable = styled.table`
border-right-color: transparent;
}
:last-of-type {
min-width: 0;
min-width: fit-content;
width: 100%;
}
}