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

[Labs-715][GenAI] Continue and Update buttons pushed off screen #58401

Merged
merged 3 commits into from
May 7, 2024

Conversation

levadadenys
Copy link
Collaborator

[Labs-715][GenAI] Continue and Update buttons pushed off screen

  • Update min width in order to prevent ui to be jumpy on when screen width is small

Fixed the issue by setting the min-width to every column and adding overflow: auto, so that in case the screen width is too small - user will be able to just scroll horizontally. 200px is a value got from visual comparison (screen collapses when columns width is smaller than 196.7px, we use x8 factor for design system, so used the closes x8 factor here, which is 200px )

Before:
scrolling-bug

After:

2024-05-03.19.05.04.mov

Links

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@levadadenys levadadenys requested review from sanchitmalhotra126 and a team May 3, 2024 16:13
Copy link
Contributor

@thomasoniii thomasoniii left a comment

Choose a reason for hiding this comment

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

lgtm 🚀

Copy link
Contributor

@sanchitmalhotra126 sanchitmalhotra126 left a comment

Choose a reason for hiding this comment

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

Nice solution!

@@ -19,15 +19,18 @@
.instructionsArea {
width: 30%;
height: 100%;
min-width: 200px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Mind adding a comment similar to your PR description around why this value was chosen? Optional - also, create a sass constant for this value?

@@ -19,15 +19,18 @@
.instructionsArea {
width: 30%;
height: 100%;
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we should also prevent buttons from disappearing if user resizes window vertically.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's also included in this PR. If user resizes window vertically and height is too small - scroll for y axis will appear

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

2024-05-06.14.41.27.mov

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! Thanks for the demo.

Copy link
Contributor

@fisher-alice fisher-alice left a comment

Choose a reason for hiding this comment

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

🎉

@levadadenys levadadenys merged commit cc41ba9 into staging May 7, 2024
2 checks passed
@levadadenys levadadenys deleted the denys/lab/labs-715 branch May 7, 2024 12:09
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.

None yet

4 participants