Skip to content

Commit 462f4cd

Browse files
committed
improvement(logs): use emcn Badge for the version pill
Replaces the hand-rolled version span with the canonical Badge (variant='green' size='md', pixel-identical tokens), so all three detail badges (Level, Trigger, Version) render through the same component.
1 parent 398d954 commit 462f4cd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/logs/components/log-details

apps/sim/app/workspace/[workspaceId]/logs/components/log-details/log-details.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'
44
import {
5+
Badge,
56
Button,
67
Chip,
78
ChipInput,
@@ -528,9 +529,9 @@ export function LogDetailsContent({ log, onActiveTabChange }: LogDetailsContentP
528529
Version
529530
</span>
530531
<div className='flex w-0 flex-1 justify-end'>
531-
<span className='max-w-full truncate rounded-md bg-[var(--badge-success-bg)] px-[9px] py-0.5 font-medium text-[var(--badge-success-text)] text-caption'>
532+
<Badge variant='green' size='md' className='max-w-full truncate'>
532533
{log.deploymentVersionName || `v${log.deploymentVersion}`}
533-
</span>
534+
</Badge>
534535
</div>
535536
</div>
536537
)}

0 commit comments

Comments
 (0)