Skip to content

Commit

Permalink
fix: history scroll when status drawer is open (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopedroliveira authored Jan 25, 2023
1 parent f0d4068 commit dabcdf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer/src/components/WalletTransactionsHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const WalletTransactionsHistory: FC<WalletTransactionsHistoryProps> = ({ allTran
return (
<>
<div className={`ease-in-out transition-all duration-1000 ${allTransactions.length > 0 ? ' fixed opacity-0 invisible translate-y-[200px]' : 'visible'}`}><WalletOnboarding /></div>
<div className={`h-[calc(100vh_-_305px)] ease-in-out transition-all duration-1000 ${allTransactions.length > 0 ? 'visible' : ' fixed opacity-0 invisible -translate-y-[50px]'}`}>
<div className={`${latestTransaction ? 'h-[calc(100vh_-_470px)]' : 'h-[calc(100vh_-_305px)]'} ease-in-out transition-all duration-1000 ${allTransactions.length > 0 ? 'visible' : ' fixed opacity-0 invisible -translate-y-[50px]'}`}>
<p className="px-8 mb-2 w-fit text-body-3xs text-black opacity-80 uppercase">WALLET HISTORY</p>
{allTransactions.map((transaction, index) => <div key={transaction.timestamp}><Transaction transaction={transaction} /></div>)}
</div>
Expand Down

0 comments on commit dabcdf0

Please sign in to comment.