Skip to content

Commit

Permalink
chore(fe): add padding bottom to panel, add ellipsis to long input ou…
Browse files Browse the repository at this point in the history
…tput
  • Loading branch information
B0XERCAT committed Oct 5, 2024
1 parent c31ac7c commit 8b80d5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/frontend/components/TestcasePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function TestcasePanel({ testResult }: TestcasePanelProps) {
</div>
<ScrollArea className="h-full">
{currentTab === 0 ? (
<div className="flex flex-col gap-6 p-5">
<div className="flex flex-col gap-6 p-5 pb-14">
<TestSummary
acceptedCount={acceptedCount}
total={total}
Expand Down
7 changes: 5 additions & 2 deletions apps/frontend/components/TestcaseTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,13 @@ export default function TestcaseTable({
<TableCell className="p-3 text-left md:p-3">
Sample #{testResult.id}
</TableCell>
<TableCell className="p-3 md:p-3">{testResult.input}</TableCell>
<TableCell className="p-3 md:p-3">
<TableCell className="max-w-96 overflow-hidden text-ellipsis whitespace-nowrap p-3 md:p-3">
{testResult.input}
</TableCell>
<TableCell className="max-w-96 overflow-hidden text-ellipsis whitespace-nowrap p-3 md:p-3">
{testResult.expectedOutput}
</TableCell>

<TableCell
className={cn(
'p-3 text-left md:p-3',
Expand Down

0 comments on commit 8b80d5a

Please sign in to comment.