-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cody: Fix button border display issue & update webview UI toolkit #51726
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bundle size report 馃摝
Look at the Statoscope report for a full comparison between the commits 59ae904 and 7cf2a50 or learn more. Open explanation
|
philipp-spiess
approved these changes
May 10, 2023
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 like an easy fix, nice!
Hardest part was to reload VS Code 馃ぃ Going to remove the focus border, thanks again for catching that <3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close #51719
Unblock #51246
Thanks @eseliger and @philipp-spiess for the help with upgrading the packages 馃檱
Issues
There was an issue with VS Code Webview buttons displaying a light border due to max-width set to 300 in the upstream package, which was then fixed in microsoft/vscode-webview-ui-toolkit#384
Text is squeezed to the side due to max width issue:
![image](https://private-user-images.githubusercontent.com/68532117/237435166-7e77d525-6f00-4f77-8d5a-18bf06142edb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNzcwNTAsIm5iZiI6MTcxOTE3Njc1MCwicGF0aCI6Ii82ODUzMjExNy8yMzc0MzUxNjYtN2U3N2Q1MjUtNmYwMC00Zjc3LThkNWEtMThiZjA2MTQyZWRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDIxMDU1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNkN2QwMTliY2NiZDg0YTJhZWRhYWQ0YTU5ZjNjN2Y5YjQ0NGY1OGI1OWI1YzFkY2Y2ZGQ1OWM4YjdiMTI3MGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.u1Z2KpIVA8oukGxEcgLRO3REML3IwDxr1AuuzeVRd4E)
Fixs
After updating the package, there is still a border for the height, but the width constrain has been removed which solve the issue where the text is squeezed to the side:
![image](https://private-user-images.githubusercontent.com/68532117/237434437-b07cbd16-2ae5-46e7-bca9-8d1459fc076c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNzcwNTAsIm5iZiI6MTcxOTE3Njc1MCwicGF0aCI6Ii82ODUzMjExNy8yMzc0MzQ0MzctYjA3Y2JkMTYtMmFlNS00NmU3LWJjYTktOGQxNDU5ZmMwNzZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDIxMDU1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiNDRmNGU1YTk3ZWQ5ZGM3ZDNiOTViYTc5NjAzMTk5YmZiN2IyNzJmMzJlNTU4NmNlNTQ0MjI2MTMyYTBhMDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.sL1WAwyhZpoHm9cKEGjS8rxVpgaaVznisJcaF6cMwvA)
Overriding the border color manually worked:
Test plan
Package updated and working fine locally. See screenshots above