Skip to content

Commit

Permalink
Fix: notifications popup: don't hide just one item (#2576)
Browse files Browse the repository at this point in the history
* Fix: notifications popup: don't hide just one item

* Don't wrap txType
  • Loading branch information
katspaugh authored Oct 3, 2023
1 parent dff00b6 commit 759fafe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const NotificationCenter = (): ReactElement => {
return notifications.slice().sort((a, b) => b.timestamp - a.timestamp)
}, [notifications])

const canExpand = notifications.length > NOTIFICATION_CENTER_LIMIT
const canExpand = notifications.length > NOTIFICATION_CENTER_LIMIT + 1

const notificationsToShow =
canExpand && showAll ? chronologicalNotifications : chronologicalNotifications.slice(0, NOTIFICATION_CENTER_LIMIT)
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/TxType/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.txType {
display: flex;
align-items: center;
flex-wrap: wrap;
flex-wrap: nowrap;
gap: var(--space-1);
color: var(--color-text-primary);
}

0 comments on commit 759fafe

Please sign in to comment.