Skip to content

Commit

Permalink
X2-9433 Breakdown Item line fix (#337)
Browse files Browse the repository at this point in the history
* X2-9433 Breakdown Item line fix

* format fixes

* check

* fix
  • Loading branch information
blkr4 authored Aug 1, 2024
1 parent 5f3f9dc commit e1c740e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Breakdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const BreakdownItem = ({
<tr className={clsx("ui-breakdown-item", colors[color], className)} {...rest}>
<td colSpan={2} className={clsx("break-all text-left leading-none", classNames.key)}>
<span className="mr-0.5">{methodIcon}</span>
<span className={clsx("break-normal", classNames.children)}>{children}</span>
<span className={clsx("break-normal md:break-all", classNames.children)}>{children ?? ""}</span>
<span className={clsx("ml-1 text-sm", classNames.info)}>
{info && (
<span className="mr-2 rounded bg-white p-1 uppercase text-black empty:hidden">{info}</span>
Expand Down
4 changes: 4 additions & 0 deletions src/stories/Other/Breakdown.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export const Default = () => {
LongMessageThat ShouldOnlyBreakAt AWhitespaceLoremIpsum
</Breakdown.Item>

<Breakdown.Item secondary="07/23/2021" info={<EmptyComponent />} value={0} methodIcon={<CardIcon />}>
SmallMessage LongMessageThatShouldOnlyBreakAtAWhitespaceLoremIpsum
</Breakdown.Item>

<Breakdown.Separator />

<Breakdown.SubtotalItem info="Paid" value={62}>
Expand Down

0 comments on commit e1c740e

Please sign in to comment.