Skip to content

Commit dfef09a

Browse files
committed
Optimized label display further
1 parent f3a281f commit dfef09a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/shared/grid-cards/GridCards.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export default function GridCards(props: GridCardsProps) {
7171
</div>
7272
{!(heuristic.stats.length == 1 && heuristic.stats[0].label == '-') && <>
7373
{heuristic.stats.map((stat: any) => (<div key={stat.labelId} className="grid grid-cols-3 font-normal text-gray-500 items-center">
74-
<div className="py-2 truncate max-w-full">
75-
<span className={`px-2 py-0.5 rounded text-sm font-medium border ${stat.color.backgroundColor} ${stat.color.textColor} ${stat.color.borderColor} ${stat.color.hoverColor}`}>
74+
<div className="py-2">
75+
<span className={`px-2 py-0.5 rounded text-sm font-medium max-w-full truncate inline-block border ${stat.color.backgroundColor} ${stat.color.textColor} ${stat.color.borderColor} ${stat.color.hoverColor}`}>
7676
{stat.label}
7777
</span>
7878
</div>

0 commit comments

Comments
 (0)