Full Toolkit for Next-Level Domain Analysis
Allow horizontal scrolling of results ↔️
Felix Wotschofskyf691e9ca9264
diff --git a/components/DnsTable.tsx b/components/DnsTable.tsxindex df11eca..b72f75b 100644--- a/components/DnsTable.tsx+++ b/components/DnsTable.tsx@@ -1,5 +1,6 @@import { Fragment } from 'react';-import { Heading, Table, Tbody, Th, Thead, Tr } from '@chakra-ui/react';+import { chakra, Heading, Table, Tbody, Th, Thead, Tr } from '@chakra-ui/react';+import { css } from '@emotion/react';import { ResolvedRecords } from '@/utils/DnsLookup';import RecordRow from '@/components/RecordRow';@@ -22,20 +23,26 @@ const DnsTable = ({ records }: DnsTableProps) => (<Heading as="h2" fontSize={{ base: 'xl', sm: '2xl' }} mb={4} mt={8}>{recordType}</Heading>- <Table key={recordType}>- <Thead>- <Tr>- <Th pl={0}>Name</Th>- <Th>TTL</Th>- <Th pr={0}>Value</Th>- </Tr>- </Thead>- <Tbody>- {value.map((v) => (- <RecordRow key={v.type + v.data} record={v} />- ))}- </Tbody>- </Table>+ <chakra.div+ css={css`+ overflow-x: auto;+ `}+ >+ <Table key={recordType}>+ <Thead>+ <Tr>+ <Th pl={0}>Name</Th>+ <Th>TTL</Th>+ <Th pr={0}>Value</Th>+ </Tr>+ </Thead>+ <Tbody>+ {value.map((v) => (+ <RecordRow key={v.type + v.data} record={v} />+ ))}+ </Tbody>+ </Table>+ </chakra.div></Fragment>);})}