Skip to content

Commit

Permalink
fix: output and dataset alignment issues in UI (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikatmitra91 authored May 2, 2024
1 parent 93e12e0 commit d8842ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-dots-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"web": patch
---

fix: output and dataset sample alignment issues
2 changes: 1 addition & 1 deletion apps/web/components/sample-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function SampleCard({
}) {
return (
<Card className="flex flex-col rounded-md items-stretch border-zinc-900 w-full">
<CardContent className="flex flex-col flex-1 p-2 mt-1 pb-0 items-stretch relative">
<CardContent className="flex flex-col flex-1 mt-2 p-2 pb-0 items-stretch relative">
<JsonAsTab
storeKey="input"
data={sample?.inputs}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/components/sample-output-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default function SampleOutputCard({
)}
</CardHeader>
<CardContent
className="flex flex-col h-full p-4 gap-2"
className="flex flex-col h-full px-4 py-2"
ref={containerWrapper}
>
<section className="flex flex-col">
Expand Down Expand Up @@ -266,7 +266,7 @@ export default function SampleOutputCard({
</div>
)}
{!diffView.enabled && hasMetadata && (
<section className="flex flex-col h-[200px] mt-2">
<section className="flex flex-col mt-2">
<section className="relative flex flex-col flex-1">
<JsonAsTab
storeKey={baseResult?.id!}
Expand Down

0 comments on commit d8842ef

Please sign in to comment.