agent2: Fix some UI glitches (#36067)

Release Notes:

- N/A
This commit is contained in:
Danilo Leal
2025-08-12 16:31:54 -03:00
committed by GitHub
parent 7167f193c0
commit 628b1058be
2 changed files with 58 additions and 35 deletions
+4 -1
View File
@@ -1084,7 +1084,9 @@ impl Element for MarkdownElement {
self.markdown.clone(),
cx,
);
el.child(div().absolute().top_1().right_1().w_5().child(codeblock))
el.child(
div().absolute().top_1().right_0p5().w_5().child(codeblock),
)
});
}
@@ -1312,6 +1314,7 @@ fn render_copy_code_block_button(
},
)
.icon_color(Color::Muted)
.icon_size(IconSize::Small)
.shape(ui::IconButtonShape::Square)
.tooltip(Tooltip::text("Copy Code"))
.on_click({