Skip to content

Commit

Permalink
fix(approval-status-tag): unset max width of Tag component (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
mediremi authored Aug 26, 2021
1 parent 608416a commit 6235aa4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/shared/approval-status/approval-status-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ const ApprovalStatusTag = ({ approvalStatus, approvedAt, approvedBy }) => {
icon: <Icon />,
}
const shouldRenderTooltip = isApproved(approvalStatus) && approvedAt
const tag = <Tag {...props}>{displayName}</Tag>
const tag = (
<Tag {...props} maxWidth="auto">
{displayName}
</Tag>
)

if (!shouldRenderTooltip) {
return tag
Expand Down

0 comments on commit 6235aa4

Please sign in to comment.