From 6f9506b924d55d7f494faae7f8eadcd871c1e072 Mon Sep 17 00:00:00 2001 From: Sammy Teillet Date: Wed, 19 Apr 2023 15:19:10 +0200 Subject: [PATCH] feature: fix borders of table --- front/src/components/table/Table.tsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/front/src/components/table/Table.tsx b/front/src/components/table/Table.tsx index 79425ce35..3b0bdd67b 100644 --- a/front/src/components/table/Table.tsx +++ b/front/src/components/table/Table.tsx @@ -20,14 +20,23 @@ type OwnProps = { const StyledTable = styled.table` min-width: 100%; border-radius: 4px; - border: 1px solid #f5f5f5; border-spacing: 0; - td, th { - border: 1px solid #f5f5f5; - font-size: 12px; + border-top: 1px solid #f5f5f5; + border-bottom: 1px solid #f5f5f5; text-align: left; + :not(:last-child) { + border-right: 1px solid #f5f5f5; + } + } + + td { + border-bottom: 1px solid #f5f5f5; + text-align: left; + :not(:last-child) { + border-right: 1px solid #f5f5f5; + } } `;