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(app-shell): enhancement to be resizable app-shell #2152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very nice visually. A couple functional tweaks:
- It's laggy, the mouse can move independently of the drag line and it takes a bit to catch up
- Probably related: the highlighted drag line doesn't stay highlighted while dragging if the mouse has moved off of it
- The panel resets to the default width every time it's closed. It should reopen to the previous width for some duration of time, probably just for the current session
- A double-click on the drag line should reset the width to the default starter width
@vicalcantFrontEnd In general this is looking good! i did notice the delay is from the transition-property...not sure how you want to handle this but looks like while we are resizing we want to disable the transition property, but have it enabled when the use clicks open/close action.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also notice when in small view the help panel no longer takes up the full width of the screen. this is a regression and should be accounted for as well.
I have included all the improvements that you mentioned in the comments.
|
@adamnel I push the version with the features that are in the comments, please let me know if you have some questions or changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to limit the width of the help panel, or rather, any limitation should come from a minimum width or other control on the main content.
Right now the help panel looks to be maxed out at 600px wide, but this forces it to be artificially narrow on wide screens, but still allows it to crush the content on narrower ones. That main content should handle its own min width to prevent the crushing, not the panel itself setting an arbitrary max value.
Thank you for your comments. To make sure I'm understanding the proposed changes, I'd like to confirm a couple of points:
|
Correct
The main content should be able to override this value on any given screen but set a default of 600px.
The behavior on small screens is good as is. |
@adamnel I removed the max-width 600px restriction in the help pannel and add min-width to main to ensure its its usability and legibility under all conditions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
🎉 This PR is included in version 8.12.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Description
The help option panel is now resizable to the left, it can now scroll with a maximum width of 600 px. Help panel text wraps automatically
What's included?
Test Steps
npm run start
General Tests for Every PR
npm run start
still works.npm run lint
passes.npm run stylelint
passes.npm test
passes and code coverage is not lower.npm run build
still works.Screenshots or link to StackBlitz/Plunker