Skip to content

Commit 9b1c664

Browse files
committed
Only include a bottom border when the triggered run table is more than 4 items
1 parent 3953e8b commit 9b1c664

File tree

1 file changed

+7
-2
lines changed
  • apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.v3.$projectParam.runs.$runParam.spans.$spanParam

1 file changed

+7
-2
lines changed

apps/webapp/app/routes/resources.orgs.$organizationSlug.projects.v3.$projectParam.runs.$runParam.spans.$spanParam/route.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,13 @@ function SpanBody({
319319
<Property.Item>
320320
<div className="flex flex-col gap-1.5">
321321
<Header3>Triggered runs</Header3>
322-
<div className="max-h-[12.5rem] overflow-y-auto rounded border-b border-grid-bright">
323-
<Table className="w-full">
322+
<div
323+
className={cn(
324+
"max-h-[12.5rem] overflow-y-auto rounded",
325+
span.triggeredRuns.length > 4 && "border-b border-grid-bright"
326+
)}
327+
>
328+
<Table>
324329
<TableHeader>
325330
<TableRow>
326331
<TableHeaderCell>Run #</TableHeaderCell>

0 commit comments

Comments
 (0)