From 3d2035a01474d6e438d3754bd70f6f980cd37e70 Mon Sep 17 00:00:00 2001 From: Rupin Khandelwal Date: Fri, 22 Jul 2022 16:26:31 +0200 Subject: [PATCH] removing the border from the table on small screens --- packages/web/components/elements/Table.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/packages/web/components/elements/Table.tsx b/packages/web/components/elements/Table.tsx index c6723b64d..ce81966bf 100644 --- a/packages/web/components/elements/Table.tsx +++ b/packages/web/components/elements/Table.tsx @@ -1,14 +1,19 @@ import { isDarkTheme } from '../../lib/themeUpdater' import { - Table as ResponsiveTable, Thead, Tbody, Tr, Th, Td, + Table as ResponsiveTable, + Thead, + Tbody, + Tr, + Th, + Td, } from 'react-super-responsive-table' +import 'react-super-responsive-table/dist/SuperResponsiveTableStyle.css' import { PencilSimple, Plus, Trash } from 'phosphor-react' import { Box, SpanBox, VStack } from './LayoutPrimitives' import { styled } from '../tokens/stitches.config' import { StyledText } from './StyledText' import { InfoLink } from './InfoLink' import { Button } from './Button' -import 'react-super-responsive-table/dist/SuperResponsiveTableStyle.css' import { IconButton } from './Button' interface TableProps { @@ -44,6 +49,11 @@ const TableBody = styled(Tbody, { backgroundColor: '$grayBg', }) +const TableRow = styled(Tr, { + border: '0 !important', + borderTop: '0.5px solid $grayBgActive !important', +}) + export function Table(props: TableProps): JSX.Element { const iconColor = isDarkTheme() ? '#D8D7D5' : '#5F5E58' @@ -128,7 +138,7 @@ export function Table(props: TableProps): JSX.Element { {Array.from(props.rows.keys()).map((key, index) => ( - + {Object.values(props.rows.get(key) || {}).map((cell, index) => ( )} - + ))}