cody
cody copied to clipboard
fix(edit-buttons): display of insert and copy buttons on non VSCode clients
- Since non VSCode clients weren't hiding the buttons under an ellipsis menu, in case there wasn't a smartApply situation the insert and save buttons would have appeared one under the other
In reality this bug didn't trigger in JB ide's such as Webstorm since a reply also gave the smartApply option in which case we would have one button after the other as seen here: https://github.com/sourcegraph/cody/blob/main/vscode/webviews/chat/ChatMessageContent/EditButtons.tsx#L159 however this fixes a potential situation as seen in the RichCodeBlocks storybook stories.
Here was the issue:
and here is how it looks with the fix:
Test plan
- Inspect the RichCodeBlocks stories and notice that the buttons are one after the other