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: terms extend beyond right edge of screen #447

Merged
merged 7 commits into from
Jul 1, 2024

Conversation

JeikZim
Copy link
Contributor

@JeikZim JeikZim commented Jun 21, 2024

Fixed a bug where the term pop-up window would extend beyond the edge of the screen on mobile devices.

Fixed a bug where the term pop-up window would extend beyond the edge of the screen on mobile devices.

const offsetRight = 5
const shiftLeft = definitionOutOfScreenOnRight ? (definitionRightCoordinate - document.body.clientWidth + offsetRight) : 0
const leftOffset =
Copy link
Contributor

Choose a reason for hiding this comment

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

it would be better to adhere to the same logic for naming variables, you have offsetRight shiftLeft and leftOffset, I suggest doing it offestLeft

@JeikZim JeikZim changed the title Fix Bug with Terms Pop-Ups fix: terms extend beyond right edge of screen Jun 28, 2024
@JeikZim JeikZim merged commit 04afecf into diplodoc-platform:master Jul 1, 2024
1 check passed
@JeikZim JeikZim deleted the patch-1 branch July 1, 2024 09:53
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.

2 participants