sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.79k stars 302 forks source link

"Skip to end" button occupies excessive space — prevents text selection in adjacent areas #6133

Closed SnzFor16Min closed 3 days ago

SnzFor16Min commented 1 week ago

Version

1.41.1731027960

Describe the bug

"Skip to end" button at the bottom occupies more space than it visually should. Specifically, there is an invisible area around the button (indicated in red in the attached screenshot) where text cannot be selected: image This makes it difficult to select any text that falls within this area.

Steps to Reproduce:

  1. Open the CODY: CHAT panel in VS Code.
  2. Chat until the content is scrollable.
  3. Scroll above to see the "Skip to end" button appear.
  4. Attempt to select text adjacent to the "Skip to end" button but you can't.

Expected behavior

Additional context

This might be due to the class applied to the button, causing its interactive area to extend beyond the visible button.

linear[bot] commented 1 week ago

BUGS-735 "Skip to end" button occupies excessive space — prevents text selection in adjacent areas

ichim-david commented 5 days ago

@SnzFor16Min I've added a pull request that handles this issue. https://github.com/sourcegraph/cody/pull/6143 I'll keep you posted if this gets merged and released.

ichim-david commented 3 days ago

@SnzFor16Min good news, my pull request has been accepted and merged. I don't know when it will show up though in the pre-release channel since Sourcegraph no longer publishes automatic pre-releases but once a new pre-release is made with this fix I'll update this issue to let you know as I've mentioned I would.

SnzFor16Min commented 2 days ago

@ichim-david Great to hear that! Thanks for you efforts and waiting for the release :)

ichim-david commented 2 days ago

@SnzFor16Min update to latest pre-release (last one was released 10h ago) and you should see that the bug has been indeed fixed.