Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Checkpoint
Antonio Scandurraf3560caf9386
diff --git a/crates/gpui3/src/elements/img.rs b/crates/gpui3/src/elements/img.rsindex 49ed91fbde6..d4c0ac4373e 100644--- a/crates/gpui3/src/elements/img.rs+++ b/crates/gpui3/src/elements/img.rs@@ -72,7 +72,7 @@ impl<S: Send + Sync + 'static> Element for Img<S> {.now_or_never().and_then(ResultExt::log_err){- let corner_radii = style.corner_radii.to_pixels(bounds, cx.rem_size());+ let corner_radii = style.corner_radii.to_pixels(bounds.size, cx.rem_size());cx.paint_image(bounds, corner_radii, order, data, self.grayscale)?;} else {cx.spawn(|_, mut cx| async move {diff --git a/crates/gpui3/src/platform/mac/shaders.metal b/crates/gpui3/src/platform/mac/shaders.metalindex 5e37b48027c..d079d2b8087 100644--- a/crates/gpui3/src/platform/mac/shaders.metal+++ b/crates/gpui3/src/platform/mac/shaders.metal@@ -138,7 +138,7 @@ vertex ShadowVertexOutput shadow_vertex(bounds.size.width += 2. * margin;bounds.size.height += 2. * margin;- float4 device_position = to_device_position(unit_vertex, bounds, bounds, viewport_size);+ float4 device_position = to_device_position(unit_vertex, bounds, shadow.content_mask.bounds, viewport_size);float4 color = hsla_to_rgba(shadow.color);return ShadowVertexOutput {diff --git a/crates/gpui3/src/style_helpers.rs b/crates/gpui3/src/style_helpers.rsindex 109edba90c4..a763e95d1f8 100644--- a/crates/gpui3/src/style_helpers.rs+++ b/crates/gpui3/src/style_helpers.rs@@ -227,8 +227,8 @@ pub trait StyleHelpers: Styled<Style = Style> {{self.declared_style().box_shadow = Some(BoxShadow {color: hsla(0., 0., 0., 1.),- offset: point(px(0.), px(0.)),- blur_radius: px(1.),+ offset: point(px(0.), px(1.)),+ blur_radius: px(2.),spread_radius: px(0.),});self