From 878aba817ce048bfb5ba83363cd984cdeae57980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Soares?= <37777652+Dnreikronos@users.noreply.github.com> Date: Wed, 1 Apr 2026 00:22:56 -0300 Subject: [PATCH] =?UTF-8?q?markdown:=20Show=20copy=20button=20on=20hover?= =?UTF-8?q?=20to=20prevent=20overlapping=20code=20block=E2=80=A6=20(#52837?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: image image After: https://github.com/user-attachments/assets/a139db06-3909-4a22-881a-836262ed3c36 --- crates/markdown/src/markdown.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/markdown/src/markdown.rs b/crates/markdown/src/markdown.rs index 024e377c2538214c9579c8f025250e2166cf7ace..6063e98229025d4160b9d3aeb4b412494f443e7d 100644 --- a/crates/markdown/src/markdown.rs +++ b/crates/markdown/src/markdown.rs @@ -826,8 +826,8 @@ impl MarkdownElement { markdown, style, code_block_renderer: CodeBlockRenderer::Default { - copy_button: true, - copy_button_on_hover: false, + copy_button: false, + copy_button_on_hover: true, border: false, }, on_url_click: None,