From a4ebfa0e7a52ba88196e82a63c261a13ab4a8b0e Mon Sep 17 00:00:00 2001 From: Ike Date: Mon, 19 Jan 2026 15:17:44 +0100 Subject: [PATCH] ui: Adjust BoxShadow offset for elevation styles (#47010) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed the offset of shadow to improve shadow appearance. There was a 1px horizontal offset on all elevated surfaces — barely perceptible, but once you see it, it's all you see |Before|After| |-|-| |before|after| Release Notes: - N/A --- crates/ui/src/styles/elevation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui/src/styles/elevation.rs b/crates/ui/src/styles/elevation.rs index 35e8e499b937339b6f5f5268e0b27b1bce9828e0..e6df718b8f76427c4d77be7a8239098da78c0b45 100644 --- a/crates/ui/src/styles/elevation.rs +++ b/crates/ui/src/styles/elevation.rs @@ -55,7 +55,7 @@ impl ElevationIndex { }, BoxShadow { color: hsla(0., 0., 0., if is_light { 0.03 } else { 0.06 }), - offset: point(px(1.), px(1.)), + offset: point(px(0.), px(1.)), blur_radius: px(0.), spread_radius: px(0.), }, @@ -82,7 +82,7 @@ impl ElevationIndex { }, BoxShadow { color: hsla(0., 0., 0., if is_light { 0.04 } else { 0.12 }), - offset: point(px(1.), px(1.)), + offset: point(px(0.), px(1.)), blur_radius: px(0.), spread_radius: px(0.), },