I have a Chakra UI Table that I want to have an overflow x when the whole table doesnt fit the screen anymore, can't seem to figure out how to put scroll left to right.
<Table my={{ base: '1rem' }}>
<Thead>
<Tr>
<Th>Question</Th>
<Th>Answer</Th>
<Th>Action</Th>
</Tr>
</Thead>
<Tbody>
{faqs.map(faq => (
<Tr key={faq._id}>
<Td>{faq.question}</Td>
<Td>{faq.answer}</Td>
<Td width="15%">
<ButtonGroup spacing="3">
<Button
colorScheme="blue"
onClick={() => modalOnOpenHandler(faq._id)}
>
<EditIcon />
</Button>
<Button
colorScheme="red"
onClick={() => idDialogHandler(faq._id)}
>
<DeleteIcon />
</Button>
</ButtonGroup>
</Td>
</Tr>
The problem is that I have a flex parent for the sidebar menu and the content component that is why the scroll can't detect that it needs to be scrolled.