# markdown: Show copy button on hover to prevent overlapping code block… \(\#52837\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/878aba817ce048bfb5ba83363cd984cdeae57980)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 878aba817ce048bfb5ba83363cd984cdeae57980

Requested commit: 878aba817ce048bfb5ba83363cd984cdeae57980

Commit: 878aba817ce048bfb5ba83363cd984cdeae57980

Tree: 1bbdc15508ee9ccfb298053a7f73133faec3cdc9

Author: João Soares

Committer: GitHub

## Message

```
markdown: Show copy button on hover to prevent overlapping code block… (#52837)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [X] Performance impact has been considered and is acceptable

Closes #52064

Release Notes:

- Fixed copy button overlapping code block content in the Agent panel
(#52064)

## Demo

Before:
<img width="496" height="139" alt="image"
src="https://github.com/user-attachments/assets/6c49ad7f-ae36-4a6b-be72-783ff6e98537"
/>
<img width="411" height="182" alt="image"
src="https://github.com/user-attachments/assets/a4b89407-2ae0-4629-875b-706592e81b34"
/>

After:


https://github.com/user-attachments/assets/a139db06-3909-4a22-881a-836262ed3c36
```

## Parents

- [971775e3b266950fbee99d97b863afe769374321](https://git.cafe/gitcafe/zed/commit/971775e3b266950fbee99d97b863afe769374321?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/878aba817ce048bfb5ba83363cd984cdeae57980?format=markdown)
