Skip to content
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: notifications popup: don't hide just one item #2576

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Fix: notifications popup: don't hide just one item #2576

merged 2 commits into from
Oct 3, 2023

Conversation

katspaugh
Copy link
Member

@katspaugh katspaugh commented Oct 2, 2023

Avoid hiding a single notification behind a collapsible box. It occupies exactly the same space.
Plus, the wording "1 other notifications" is wrong.

How to test

  • Trigger 5 notitications
  • Before: the 5th one was hidden, and it said "1 other notifications"
  • After: all 5 are shown
  • Trigger 6 or more notitications
  • Only 4 are shown and it says "2 other notifications"

@katspaugh katspaugh marked this pull request as ready for review October 2, 2023 12:56
@github-actions
Copy link

github-actions bot commented Oct 2, 2023

Branch preview

✅ Deploy successful!

https://popup--walletweb.review-wallet-web.5afe.dev

@github-actions
Copy link

github-actions bot commented Oct 2, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@@ -1,7 +1,7 @@
.txType {
display: flex;
align-items: center;
flex-wrap: wrap;
flex-wrap: nowrap;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to notification, it fixes this:
Screenshot 2023-10-02 at 15 18 13

@francovenica
Copy link
Contributor

So it seems that "1 other notification" will not show up anymore, it shows 5 notifications and if there are 6 it will show 4 and "2 more notifications" to display.

Looks good to me

@katspaugh katspaugh merged commit 759fafe into dev Oct 3, 2023
9 checks passed
@katspaugh katspaugh deleted the popup branch October 3, 2023 06:26
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants