-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: broken loading in Transactions in UserHub + fixed text overflow in pills #2725
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,25 +17,29 @@ const GroupedTransactionStatus: FC<TransactionStatusProps> = ({ status }) => { | |
|
||
return ( | ||
<div | ||
className={clsx('flex flex-col items-end', { | ||
className={clsx('flex min-w-0 flex-col items-end', { | ||
'text-success-400': succeeded, | ||
'text-negative-400': failed, | ||
})} | ||
> | ||
{pending && ( | ||
<SpinnerGap | ||
className="ml-2.5 h-[0.8125rem] w-[0.8125rem] animate-spin text-blue-400" | ||
size={14} | ||
/> | ||
)} | ||
<PillsBase | ||
className={clsx({ | ||
'bg-success-100 text-success-400': succeeded, | ||
'bg-negative-100 text-negative-400': failed, | ||
'bg-gray-100 text-gray-500': !succeeded && !failed, | ||
})} | ||
className={clsx( | ||
{ | ||
'bg-success-100 text-success-400': succeeded, | ||
'bg-negative-100 text-negative-400': failed, | ||
'bg-gray-100 text-gray-500': !succeeded && !failed, | ||
}, | ||
'min-w-0 max-w-full', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure |
||
)} | ||
textClassName="flex min-w-0 items-center" | ||
> | ||
{status.toLowerCase()} | ||
<span className="min-w-0 truncate">{status.toLowerCase()}</span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure |
||
{pending && ( | ||
<SpinnerGap | ||
className="flex-grow-1 ml-1 inline-block h-[0.8125rem] w-[0.8125rem] flex-shrink-0 animate-spin text-blue-400" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure |
||
size={14} | ||
/> | ||
)} | ||
</PillsBase> | ||
</div> | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min-w-0
andmax-w-full
classes added for different elements to maketext-overflow: ellipsis
on pills actually works