Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix misaligned borders around avatars with fractional display scale (#63595)

John Tur520d8bdaebe4
diff --git a/crates/ui/src/components/avatar.rs b/crates/ui/src/components/avatar.rs
index b8a8c017ea7..aed539b21e3 100644
--- a/crates/ui/src/components/avatar.rs
+++ b/crates/ui/src/components/avatar.rs
@@ -89,7 +89,7 @@ impl RenderOnce for Avatar {
})
.child(
self.image
- .size(image_size)
+ .size_full()
.rounded_full()
.bg(cx.theme().colors().element_disabled)
.with_fallback(|| {