mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 07:15:44 +00:00
refactor(FE): Prevent badge text wrapping
This commit is contained in:
@@ -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',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user