Skip to content

Commit

Permalink
feat(latest-queries): enhance "Answer" column with word wrapping in L…
Browse files Browse the repository at this point in the history
…atestQueries component
  • Loading branch information
mert-ergun committed Feb 13, 2025
1 parent 01783cd commit d5451a8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion crossbar_llm/frontend/src/components/LatestQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ function LatestQueries({ queries, onSelectQuery }) {
{ field: 'query', headerName: 'Query', flex: 2 },
{ field: 'type', headerName: 'Type', flex: 1 },
{ field: 'llmType', headerName: 'LLM', flex: 1 },
{ field: 'naturalAnswer', headerName: 'Answer', flex: 2 } // Added new column
{
field: 'naturalAnswer',
headerName: 'Answer',
flex: 2,
renderCell: (params) => (
<div style={{ whiteSpace: 'normal', wordWrap: 'break-word' }}>
{params.value}
</div>
)
} // updated "Answer" column
];

const rows = queries.slice().reverse().map((item, index) => ({
Expand Down

0 comments on commit d5451a8

Please sign in to comment.