refactor(FE): Prevent badge text wrapping

This commit is contained in:
rstubryan
2026-02-05 12:06:04 +07:00
parent e66f30e703
commit 1af2b72bea
2 changed files with 2 additions and 2 deletions
@@ -49,7 +49,7 @@ const ExpenseStatusBadge = ({ approval }: ExpenseStatusBadgeProps) => {
color={expenseStatusBadgeColor} color={expenseStatusBadgeColor}
text={isLatestApprovalRejected ? 'Ditolak' : (approval?.step_name ?? '')} text={isLatestApprovalRejected ? 'Ditolak' : (approval?.step_name ?? '')}
className={{ className={{
badge: 'w-fit', badge: 'whitespace-nowrap max-w-max w-fit',
}} }}
/> />
); );
@@ -29,7 +29,7 @@ const RealizationStatusBadge = ({ approval }: RealizationStatusBadgeProps) => {
color={realizationStatusBadgeColor} color={realizationStatusBadgeColor}
text={isLatestApprovalRejected ? 'Ditolak' : realizationStatus} text={isLatestApprovalRejected ? 'Ditolak' : realizationStatus}
className={{ className={{
badge: 'w-fit', badge: 'whitespace-nowrap max-w-max w-fit',
}} }}
/> />
); );