From 768f3588f24b2e116a0e96ea94417d8a1d6d9bc4 Mon Sep 17 00:00:00 2001 From: Guillaume Hivert Date: Wed, 15 May 2024 01:54:52 +0200 Subject: [PATCH] fix: correct z-index of toasts Signed-off-by: Guillaume Hivert --- packages/grille_pain/src/grille_pain/internals/view.gleam | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/grille_pain/src/grille_pain/internals/view.gleam b/packages/grille_pain/src/grille_pain/internals/view.gleam index bb88512..663c020 100644 --- a/packages/grille_pain/src/grille_pain/internals/view.gleam +++ b/packages/grille_pain/src/grille_pain/internals/view.gleam @@ -56,6 +56,7 @@ fn wrapper_position_style(toast: Toast) { sketch.position("fixed"), sketch.top(px(min_bot)), sketch.transition("right 0.7s, top 0.7s"), + sketch.z_index(1_000_000), case toast.displayed { True -> sketch.right(px(0)) False ->