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(protocol-designer): fix OffDeckDetails container flicker #17479

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

ncdiehl11
Copy link
Collaborator

@ncdiehl11 ncdiehl11 commented Feb 10, 2025

Overview

Refactors padding logic in PD OffDeckDetails outer container to justify right with padding, rather than justifying center and dynamically calculating left padding based on the presence of the details element. This prevents flickering when hovering an added offdeck labware

Closes RQA-3953

Test Plan and Hands on Testing

  • create a protocol and add some off-deck labware
  • hover the added labware to produce hover details, and verify that no bouncing happens

Before

Screen.Recording.2025-02-10.at.10.54.26.AM.mov

After

Screen.Recording.2025-02-10.at.10.53.52.AM.mov

Changelog

  • fix OffDeckDetails alignment and padding

Review requests

see test plan

Risk assessment

low

Refactors padding logic in PD OffDeckDetails outer container to align right with padding, rather than dynamically calculating left padding based on the presence of the details element.

Closes RQA-3953
@ncdiehl11 ncdiehl11 self-assigned this Feb 10, 2025
Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

this seems a lot cleaner imo but it isn't fully responsive compared to the deck map

Screenshot 2025-02-10 at 10 41 09

@jerader
Copy link
Collaborator

jerader commented Feb 10, 2025

ah just realized the responsiveness you have now matches what we have in prod!

Copy link
Collaborator

@jerader jerader left a comment

Choose a reason for hiding this comment

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

thanks for fixing!

@ncdiehl11
Copy link
Collaborator Author

this seems a lot cleaner imo but it isn't fully responsive compared to the deck map

Screenshot 2025-02-10 at 10 41 09

Not a regression but I agree we should make this responsive (maybe X% of the container width)

@ncdiehl11 ncdiehl11 marked this pull request as ready for review February 10, 2025 15:52
@ncdiehl11 ncdiehl11 requested a review from a team as a code owner February 10, 2025 15:52
@ncdiehl11 ncdiehl11 changed the title fix(protocol-designer): fix OffDeckDetails container fix(protocol-designer): fix OffDeckDetails container flicker Feb 10, 2025
@ncdiehl11 ncdiehl11 merged commit e734350 into chore_release-pd-8.4.0 Feb 10, 2025
14 checks passed
@ncdiehl11 ncdiehl11 deleted the pd_fix-offdeck-container branch February 10, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants