-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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(docs-infra): parent max-height IDE error panel visibility #54128
base: main
Are you sure you want to change the base?
Conversation
3533f97
to
0569bff
Compare
Deployed adev-preview for f2d9f4a to: https://ng-dev-previews-fw--pr-angular-angular-54128-adev-prev-c6p96pov.web.app Note: As new commits are pushed to this pull request, this link is updated after the preview is rebuilt. |
We wouldn't want to shift the width, the height should be probably a percent of the box - cc @bencodezen |
So, my solution is fine? Or need to calc the percentage |
@vladboisa Your solution is a good start in terms of not letting the error messages take over too much of the editor. That said, if the goal is to allow users to fix the errors while the popup is visible, this doesn't fix the issue. The additional piece we need on this is to modify the height of the editor so that users can see the errors in question while also seeing the error box. This is a quick prototype I did by modifying the height of the editor, but I know it'll need more dynamic calculations based on whether the error popup has appeared or not. Let me know if you have any additional questions! |
@bencodezen I've added the animation, and make a modification to the height of the editor, when the error box is appears |
487f406
to
c7ba9cc
Compare
788a27a
to
c7b3c5d
Compare
Remove max-height: 200px in ul child inline-errors-box, add the overflow & max-height in percentages to the parent for correct visualization Fixes angular#52760 refactor(docs-infra): correct typo Correct typo in comment feat(docs-infra): modify the height of the editor If error box are displayed, modify the height of the editor
Add the smooth animation when height of the container is changing
Apply the min() function for set the smallest height fix(docs-infra): move height into editor-wrapper Move the calculation rule of height edit into editor-wrapper selector fix(docs-infra): change has selector Change the has selector fix(docs-infra): change selector's for child Changing the selector for test this solution Fix
626c808
to
f2d9f4a
Compare
@bencodezen @twerske |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Was:
Issue Number: #52760
What is the new behavior?
After adding overflow and max-height in percentage to parent container and, move to the bottom error box,
issue behavior was fixed
Does this PR introduce a breaking change?
Other information