Skip to content

Commit 7b33e28

Browse files
samejrmatt-aitken
authored andcommitted
use tabular nums to avoid layout shift
1 parent dc24731 commit 7b33e28

File tree

1 file changed

+5
-3
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.errors._index

1 file changed

+5
-3
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.errors._index/route.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,9 @@ function ErrorGroupRow({
575575
<CopyableTableCell to={errorPath} className="font-mono" value={errorMessage}>
576576
{errorMessage.length > 128 ? `${errorMessage.slice(0, 128)}…` : errorMessage}
577577
</CopyableTableCell>
578-
<TableCell to={errorPath}>{errorGroup.count.toLocaleString()}</TableCell>
578+
<TableCell to={errorPath}>
579+
<span className="tabular-nums">{errorGroup.count.toLocaleString()}</span>
580+
</TableCell>
579581
<TableCell to={errorPath} actionClassName="py-1.5">
580582
<Suspense fallback={<ErrorActivityBlankState />}>
581583
<TypedAwait resolve={occurrences} errorElement={<ErrorActivityBlankState />}>
@@ -590,10 +592,10 @@ function ErrorGroupRow({
590592
</TypedAwait>
591593
</Suspense>
592594
</TableCell>
593-
<TableCell to={errorPath}>
595+
<TableCell to={errorPath} className="tabular-nums">
594596
<RelativeDateTime date={errorGroup.firstSeen} />
595597
</TableCell>
596-
<TableCell to={errorPath}>
598+
<TableCell to={errorPath} className="tabular-nums">
597599
<RelativeDateTime date={errorGroup.lastSeen} />
598600
</TableCell>
599601
</TableRow>

0 commit comments

Comments
 (0)