Fix paint_quad behavior change which clamped corner rounding (#27472)

Turns out that git deletion indicator relied on using larger-than-bounds
corner rounding - see
https://github.com/zed-industries/zed/pull/27460#issuecomment-2753174153

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-03-25 23:09:18 -06:00 committed by GitHub
parent 931a6d6f40
commit e091c5faaf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 17 deletions

View file

@ -421,8 +421,10 @@ impl Element for Img {
window,
cx,
|style, window, cx| {
let corner_radii = style.corner_radii.to_pixels(window.rem_size());
let corner_radii = style
.corner_radii
.to_pixels(window.rem_size())
.clamp_radii_for_quad_size(bounds.size);
if let Some(Ok(data)) = source.use_data(window, cx) {
let new_bounds = self
.style