Skip to content

Commit

Permalink
Fix threads table overflowing if query text is long
Browse files Browse the repository at this point in the history
  • Loading branch information
StreetLamb committed Aug 25, 2024
1 parent 232a887 commit 39dfe04
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/src/components/Teams/ViewThreads.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
Flex,
Spinner,
Container,
TableContainer,
Table,
Thead,
Expand Down Expand Up @@ -84,7 +83,6 @@ const ChatHistory = ({ teamId, updateTabIndex }: ChatHistoryProps) => {
</Flex>
) : (
threads && (
<Container maxW="full">
<TableContainer>
<Table size={{ base: "sm", md: "md" }}>
<Thead>
Expand All @@ -95,7 +93,7 @@ const ChatHistory = ({ teamId, updateTabIndex }: ChatHistoryProps) => {
<Th>Actions</Th>
</Tr>
</Thead>
<Tbody>
<Tbody width={"2rem"}>
{threads.data.map((thread) => (
<Tr
key={thread.id}
Expand All @@ -104,7 +102,7 @@ const ChatHistory = ({ teamId, updateTabIndex }: ChatHistoryProps) => {
cursor={"pointer"}
>
<Td>{new Date(thread.updated_at).toLocaleString()}</Td>
<Td>{thread.query}</Td>
<Td maxW="20rem" overflow="hidden" textOverflow="ellipsis">{thread.query}</Td>
<Td>{thread.id}</Td>
<Td>
<IconButton
Expand All @@ -119,7 +117,6 @@ const ChatHistory = ({ teamId, updateTabIndex }: ChatHistoryProps) => {
</Tbody>
</Table>
</TableContainer>
</Container>
)
)}
</>
Expand Down

0 comments on commit 39dfe04

Please sign in to comment.