From a60d26a7308b7e42be99dd363eb5bb6b580cf0a1 Mon Sep 17 00:00:00 2001 From: sanduluca <56228534+sanduluca@users.noreply.github.com> Date: Wed, 22 Jan 2025 16:31:21 +0200 Subject: [PATCH] fix(bug): Loss of precision during arithmetic conversion --- src/layouts/stack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/stack.ts b/src/layouts/stack.ts index c8f8e06a..9f64f70e 100644 --- a/src/layouts/stack.ts +++ b/src/layouts/stack.ts @@ -301,7 +301,7 @@ function getCommonStyles(opts: { } return { - zIndex, + zIndex: Math.round(zIndex), opacity, }; }