Skip to content

Commit e5ce9ac

Browse files
committed
fix(*): fix the evaluation table UI
1 parent d3f11ec commit e5ce9ac

File tree

1 file changed

+8
-43
lines changed

1 file changed

+8
-43
lines changed

app/components/DetailedResultsTable.tsx

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export default function DetailedResultsTable({
148148
>
149149
{/* Table Container */}
150150
<div className="overflow-x-auto">
151-
<table className="w-full border-collapse" style={{ minWidth: "800px" }}>
151+
<table className="w-full border-collapse min-w-[800px] table-fixed">
152152
{/* Table Header */}
153153
<thead>
154154
<tr
@@ -230,14 +230,7 @@ export default function DetailedResultsTable({
230230
className="px-4 py-3 align-top"
231231
style={{ backgroundColor: "#fafafa" }}
232232
>
233-
<div
234-
className="text-sm overflow-auto"
235-
style={{
236-
color: "#171717",
237-
lineHeight: "1.5",
238-
maxHeight: "150px",
239-
}}
240-
>
233+
<div className="text-sm overflow-auto text-[#171717] leading-normal max-h-[150px] wrap-break-word">
241234
{question}
242235
</div>
243236
</td>
@@ -247,28 +240,14 @@ export default function DetailedResultsTable({
247240
className="px-4 py-3 align-top"
248241
style={{ backgroundColor: "#fafafa" }}
249242
>
250-
<div
251-
className="text-sm overflow-auto"
252-
style={{
253-
color: "#171717",
254-
lineHeight: "1.5",
255-
maxHeight: "150px",
256-
}}
257-
>
243+
<div className="text-sm overflow-auto text-[#171717] leading-normal max-h-[150px] wrap-break-word">
258244
{groundTruth}
259245
</div>
260246
</td>
261247

262248
{/* Answer */}
263249
<td className="px-4 py-3 align-top">
264-
<div
265-
className="text-sm overflow-auto"
266-
style={{
267-
color: "#171717",
268-
lineHeight: "1.5",
269-
maxHeight: "150px",
270-
}}
271-
>
250+
<div className="text-sm overflow-auto text-[#171717] leading-normal max-h-[150px] wrap-break-word">
272251
{answer}
273252
</div>
274253
</td>
@@ -487,28 +466,14 @@ function GroupedResultsTable({ traces }: { traces: GroupedTraceItem[] }) {
487466

488467
{/* Question */}
489468
<td className="px-4 pt-3 pb-1 align-top bg-[#fafafa]">
490-
<div
491-
className="text-sm overflow-auto"
492-
style={{
493-
color: "#171717",
494-
lineHeight: "1.5",
495-
maxHeight: "150px",
496-
}}
497-
>
469+
<div className="text-sm overflow-auto text-[#171717] leading-normal max-h-[150px] wrap-break-word">
498470
{group.question}
499471
</div>
500472
</td>
501473

502474
{/* Ground Truth */}
503-
<td className="px-4 pt-3 pb-1 align-top bg-[#fafafa]">
504-
<div
505-
className="text-sm overflow-auto"
506-
style={{
507-
color: "#171717",
508-
lineHeight: "1.5",
509-
maxHeight: "150px",
510-
}}
511-
>
475+
<td className="px-4 pt-3 pb-1 align-top bg-bg-secondary">
476+
<div className="text-sm overflow-auto text-[#171717] leading-normal max-h-[150px] wrap-break-word">
512477
{group.ground_truth_answer}
513478
</div>
514479
</td>
@@ -522,7 +487,7 @@ function GroupedResultsTable({ traces }: { traces: GroupedTraceItem[] }) {
522487
className="px-4 pt-3 pb-1 align-top"
523488
>
524489
{answer ? (
525-
<div className="text-sm overflow-auto text-[#171717] leading-6 max-h-[150px]">
490+
<div className="text-sm overflow-auto text-[#171717] leading-6 max-h-[150px] wrap-break-word">
526491
{answer}
527492
</div>
528493
) : (

0 commit comments

Comments
 (0)