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

feat: fixed banner #822

Merged
merged 1 commit into from
Nov 2, 2020
Merged

feat: fixed banner #822

merged 1 commit into from
Nov 2, 2020

Conversation

Oxiang
Copy link
Contributor

@Oxiang Oxiang commented Oct 29, 2020

Problem

  1. The banner is suppose to make announcement but it disappears after user scrolls down
  2. Text overflow for long 'shorturl' in drawer

Closes #802

Solution

Add an event listener to the page to track the scroll for Y-axis. It will fix the banner's position after scrolling past the mast

Bug Fixes:

  • add 'overflow: hidden' to the text wrapper
  • rename banner's props accordingly

Before & After Screenshots

BEFORE:
Desktop banner at the top
desktop_top_banner

Desktop banner when user scrolls to bottom
desktop_bottom_banner

Mobile banner at the top
mobile_top_banner

Mobile banner when user scrolls to bottom
mobile_bottom_banner

Overflow text before
copybutton_overflow_before

No overflow text after
copybutton_overflow_after

- fix banner after scrolling past mast
- stop text from overflowing in drawer
Copy link
Contributor

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

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

lgtm

@Oxiang Oxiang merged commit 039cac6 into develop Nov 2, 2020
@Oxiang Oxiang deleted the banner-fix branch November 2, 2020 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pin banner at the top when user scrolls down the userPage
2 participants