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

Fixed issue #3343: Scroll bottom button misbehaviour #3422

Merged
merged 3 commits into from Feb 12, 2020
Merged

Fixed issue #3343: Scroll bottom button misbehaviour #3422

merged 3 commits into from Feb 12, 2020

Conversation

elit-altum
Copy link
Member

@elit-altum elit-altum commented Feb 3, 2020

Fixes #3343

Changes:

  • Changed the else-if block display conditions for the scroll bottom button to appear and disappear which were controlled by component state.

Demo Link : https://pr-3422-fossasia-susi-web-chat.surge.sh/

ScrollBottomNotWorkingFixed

@@ -10,7 +10,7 @@ const ScrollTopFab = styled(Fab)`
top: ${props => props.height - 95 + 'px'};
right: ${props => (props.width < 1100 ? '70px' : '100px')};
margin: 15px;
z-index: 9000;
z-index: 2;
Copy link
Member

@snitin315 snitin315 Feb 4, 2020

Choose a reason for hiding this comment

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

This change in Z-Index is not required I guess.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is required as the scroll to top button which leads to the top of the webpage conflicts with the chat box input. See here,
ScrollTopOverride

Copy link
Member Author

Choose a reason for hiding this comment

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

The z-index puts the chat modal over the button to resolve this issue.

scrollValues.scrollHeight - Math.ceil(scrollValues.scrollTop) ===
scrollValues.clientHeight
!(showScrollBottom && showScrollTop) &&
scrollValues.clientHeight + scrollValues.scrollTop <
Copy link

Choose a reason for hiding this comment

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

add Math.ceil(scrollValues.scrollTop) .

Copy link
Member Author

Choose a reason for hiding this comment

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

@maze-runnar Done!

Copy link
Member

@anishagg17 anishagg17 left a comment

Choose a reason for hiding this comment

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

@elit-altum resolve conflicts

@elit-altum
Copy link
Member Author

elit-altum commented Feb 11, 2020

@elit-altum resolve conflicts
@anishagg17
Done!

…lay conditions

Fixed issue #3343 scroll buttons misbehaving

Fixed Issue #3343 scroll buttons misbehaving

refactored susi-chatbot.js to ES6 and eliminate the use of jQuery (#3407)

Co-authored-by: Akshat Garg <akshatnitd@gmail.com>

Made bot wizard stepper linear (#3357)

handled check()

Co-authored-by: Akshat Garg <akshatnitd@gmail.com>

Used class field declarations for javascript (#3419)

Co-authored-by: Akshat Garg <akshatnitd@gmail.com>

removed blank message (#3416)

    fixed error in chat with susi (#3440)

Used class field declarations for javascript (#3443)

Fixed unnecessary scrollbar in settings (#3437)

Fixed double scrollbar in settings menu

Co-authored-by: Akshat Garg <akshatnitd@gmail.com>

Fixed overflow in x-direction (#3424)

* overflow in x direction fixed

* overflow in x direction fixed

Co-authored-by: Akshat Garg <akshatnitd@gmail.com>

Sorted the skill feedbacks wrt timestamps (#3433)

Co-authored-by: Akshat Garg <akshatnitd@gmail.com>

Corrected typo in Projection_Information.md (#3421)

Co-authored-by: Akshat Garg <akshatnitd@gmail.com>

Checked prettier fails

Fixed issue #3343 Scroll button misbehavior
Copy link
Member

@Dilshaad21 Dilshaad21 left a comment

Choose a reason for hiding this comment

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

Conflicts are not resolved yet.

Copy link
Member

@samagragupta samagragupta left a comment

Choose a reason for hiding this comment

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

Please resolve conflicts.

@elit-altum
Copy link
Member Author

Conflicts are not resolved yet.

Conflicts resolved

@akshatnitd akshatnitd merged commit a6b94d6 into fossasia:master Feb 12, 2020
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.

Scroll up button misbehaves
8 participants